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