[update] 插入签章信息增加打印信息
This commit is contained in:
@@ -2259,6 +2259,7 @@ export default {
|
||||
let flag = false
|
||||
for (let i = 0; i < AllContentControls.length; i++) {
|
||||
if (AllContentControls[i].GetAlias() === 'sinotruk.signatureInfo') {
|
||||
console.log('已经创建过签章了')
|
||||
flag = true
|
||||
break
|
||||
}
|
||||
@@ -2298,6 +2299,7 @@ export default {
|
||||
oParagraphSubTitle.SetJc('center')
|
||||
oParagraphSubTitle.SetBold(false)
|
||||
emptyParagraph.InsertParagraph(oParagraphSubTitle, 'after')
|
||||
console.log('------------创建完黑体标题了')
|
||||
|
||||
// 责任签署的大标题
|
||||
const oParagraphLargeTitle = Api.CreateParagraph()
|
||||
@@ -2309,6 +2311,7 @@ export default {
|
||||
oParagraphLargeTitle.SetColor(0, 0, 0)
|
||||
oParagraphLargeTitle.SetJc('center')
|
||||
oParagraphSubTitle.InsertParagraph(oParagraphLargeTitle, 'after')
|
||||
console.log('------------创建完责任部署标题了')
|
||||
|
||||
// 计划编号
|
||||
// const oParagraphPlanNum = Api.CreateParagraph()
|
||||
@@ -2333,6 +2336,7 @@ export default {
|
||||
oParagraphStandardName.SetColor(0, 0, 0)
|
||||
oParagraphStandardName.SetSpacingLine(1.5 * 240, 'auto')
|
||||
oParagraphLargeTitle.InsertParagraph(oParagraphStandardName, 'after')
|
||||
console.log('------------创建完标准名称了')
|
||||
|
||||
// 横线
|
||||
const oParagraphLine = Api.CreateParagraph()
|
||||
@@ -2344,6 +2348,7 @@ export default {
|
||||
oParagraphLine.SetSpacingLine(240, 'auto')
|
||||
oDrawing.SetDistances(0, 541, 0, 0)
|
||||
oParagraphStandardName.InsertParagraph(oParagraphLine, 'after')
|
||||
console.log('------------创建完横线了')
|
||||
|
||||
// 签章信息部分
|
||||
const oParagraphBox = Api.CreateParagraph()
|
||||
@@ -2353,6 +2358,7 @@ export default {
|
||||
oDrawingBox.SetVerticalTextAlign('top')
|
||||
oParagraphBox.AddDrawing(oDrawingBox)
|
||||
oParagraphLine.InsertParagraph(oParagraphBox, 'after')
|
||||
console.log('------------创建完签章信息部分了')
|
||||
|
||||
const signatureInfo = Asc.scope.signatureInfo
|
||||
if (signatureInfo) {
|
||||
@@ -2414,6 +2420,7 @@ export default {
|
||||
}
|
||||
|
||||
}
|
||||
console.log('------------创建完内部签章信息了')
|
||||
}
|
||||
|
||||
// 中国重型汽车集团有限公司
|
||||
@@ -2428,6 +2435,7 @@ export default {
|
||||
oParagraphPageEnd.SetBold(false)
|
||||
oParagraphPageEnd.SetSpacing(1.8)
|
||||
oParagraphBox.InsertParagraph(oParagraphPageEnd, 'after')
|
||||
console.log('------------创建完底部标题了')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user