|
@@ -1667,31 +1667,31 @@ class Center extends Auth
|
|
|
|
|
|
$dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
|
|
|
$templateProcessor = new TemplateProcessor($dir.'/cgdd.docx');
|
|
|
- $templateProcessor->cloneRow('id',3);
|
|
|
+
|
|
|
|
|
|
$templateProcessor->setValue('id#1', '1');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ $templateProcessor->setValue('bh#1', '1');
|
|
|
+ $templateProcessor->setValue('name#1', '名称');
|
|
|
+ $templateProcessor->setValue('gg#1', '规格');
|
|
|
+ $templateProcessor->setValue('num#1', '10');
|
|
|
+ $templateProcessor->setValue('price#1', '10');
|
|
|
+ $templateProcessor->setValue('allprice#1', '20');
|
|
|
|
|
|
$templateProcessor->setValue('id#2', '1');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ $templateProcessor->setValue('bh#2', '1');
|
|
|
+ $templateProcessor->setValue('name#2', '名称');
|
|
|
+ $templateProcessor->setValue('gg#2', '规格');
|
|
|
+ $templateProcessor->setValue('num#2', '10');
|
|
|
+ $templateProcessor->setValue('price#2', '10');
|
|
|
+ $templateProcessor->setValue('allprice#2', '20');
|
|
|
|
|
|
$templateProcessor->setValue('id#3', '1');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ $templateProcessor->setValue('bh#3', '1');
|
|
|
+ $templateProcessor->setValue('name#3', '名称');
|
|
|
+ $templateProcessor->setValue('gg#3', '规格');
|
|
|
+ $templateProcessor->setValue('num#3', '10');
|
|
|
+ $templateProcessor->setValue('price#3', '10');
|
|
|
+ $templateProcessor->setValue('allprice#3', '20');
|
|
|
|
|
|
$templateProcessor->saveAs($dir."b.docx");
|
|
|
|