解决方案: |
问题解决方法:注意先做数据备份:1、删除2006年的单据模板数据delete from voucheritems_base;delete from voucheritems_lang。2、按照2005年的记录插入到2006年的voucheritems_base表中:INSERT INTO [UFDATA_002_2006].[dbo].[voucheritems_base]([VT_ID], [CardNum], [CardItemNum], [CanNotSelect], [ShowIt], [LinkIt], [LinkTbl], [LinkField], [TableName], [FieldName], [FieldType], [ReferType], [ReferTable], [CardSection], [CanModify], [MaxLength], [MaxShowLen], [NumPoint], [IsNull], [CanDelete], [UserCheck], [UserPrompt], [FormatChar], [IsMain], [NeedSum], [CalcField], [AliasNum], [isSelfDef], [COX], [COY], [Width], [Height], [TabIndex], [DefaultValue], [IsFixedLenght], [FormatData], [PrintCaption], [PrintUpcase], [PrintInterval], [DataSource], [EnterType], [DataRule], [ValidityCheck], [ReserveSegTitlePos], [BuildArchives], [ReferReturnField], [cmemo], [nBorder], [pubufts], [EnumType], [IsEnum], [EnumTypeString], [bZeroAllowable], [iFlags], [vValueDefault]) select [VT_ID], [CardNum], [CardItemNum], [CanNotSelect], [ShowIt], [LinkIt], [LinkTbl], [LinkField], [TableName], [FieldName], [FieldType], [ReferType], [ReferTable], [CardSection], [CanModify], [MaxLength], [MaxShowLen], [NumPoint], [IsNull], [CanDelete], [UserCheck], [UserPrompt], [FormatChar], [IsMain], [NeedSum], [CalcField], [AliasNum], [isSelfDef], [COX], [COY], [Width], [Height], [TabIndex], [DefaultValue], [IsFixedLenght], [FormatData], [PrintCaption], [PrintUpcase], [PrintInterval], [DataSource], [EnterType], [DataRule], [ValidityCheck], [ReserveSegTitlePos], [BuildArchives], [ReferReturnField], [cmemo], [nBorder], null, [EnumType], [IsEnum], [EnumTypeString], [bZeroAllowable], [iFlags], [vValueDefault] from ufdata_002_2005..voucheritems_base。3、按照2005年的记录插入到2006年的voucheritems_lang表中:INSERT INTO [UFDATA_002_2006].[dbo].[voucheritems_lang]([guid], [localeid], [vt_id], [fieldname], [cardsection], [cardnum], [carditemname], [cardformula1], [cardformula2], [fontstate], [ufts]) select [guid], [localeid], [vt_id], [fieldname], [cardsection], [cardnum], [carditemname], [cardformula1], [cardformula2], [fontstate], null from ufdata_002_2005..voucheritems_lang。4、更新补丁。请将U861的补丁更新全,请上支持网站上下载最新的补丁程序,需要更新的补丁编号:1770和1768、1738、1739、1742、1744、1751(补丁更新办法:找到1770号补丁,点击该补丁文件名,会弹出补丁程序详细信息窗口,在文件下载处有一“U8补丁加载说明”,请下载后,按此说明更新补丁);注意补丁更新时,ocx和dll扩展名的文件更新后需用regsvr32命令注册,有一些xml的文件要根据支持网站上的说明拷贝到相关目录下,SQL脚本文件需按文件日期的先后顺序执行。 |