Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
ReportingSystemAPI
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
刘军
ReportingSystemAPI
Commits
b0a21d5a
Commit
b0a21d5a
authored
Dec 30, 2019
by
刘军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api提交完成
parent
d35bf474
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
61 行增加
和
6 行删除
+61
-6
G.MES.API/Controllers/ExportWordController.cs
+2
-1
G.MES.API/G.MES.API.csproj
+2
-0
G.MES.API/Template/Chemotherapy.xlsx
+0
-0
G.MES.API/Template/Summary.xlsx
+0
-0
G.MES.Business/G.BaseInfo/ViewModel/ClientInfoModel/ClientInfoRequestModel.cs
+0
-4
WordByDocx/Word/CreateWordReport.cs
+1
-0
WordByDocx/Word/GetData.cs
+7
-0
WordByDocx/Word/OperationFunc.cs
+1
-1
WordByDocx/Word/ReplaceText.cs
+48
-0
WordByDocx/template/参考报告.docx
+0
-0
没有找到文件。
G.MES.API/Controllers/ExportWordController.cs
查看文件 @
b0a21d5a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Web
;
using
System.Web
;
using
System.Web.Http
;
namespace
G.MES.API.Controllers
namespace
G.MES.API.Controllers
{
{
...
@@ -15,9 +16,9 @@ namespace G.MES.API.Controllers
...
@@ -15,9 +16,9 @@ namespace G.MES.API.Controllers
/// </summary>
/// </summary>
/// <param name="ClientInfosOID"></param>
/// <param name="ClientInfosOID"></param>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
]
public
string
GetCurrentReport
(
List
<
Guid
>
ClientInfosOID
)
public
string
GetCurrentReport
(
List
<
Guid
>
ClientInfosOID
)
{
{
return
""
;
return
""
;
}
}
}
}
...
...
G.MES.API/G.MES.API.csproj
查看文件 @
b0a21d5a
...
@@ -950,6 +950,8 @@
...
@@ -950,6 +950,8 @@
<Content Include="Template\相关基因列表模板.xlsx" />
<Content Include="Template\相关基因列表模板.xlsx" />
<Content Include="Template\样本质控模板.xlsx" />
<Content Include="Template\样本质控模板.xlsx" />
<Content Include="Template\遗传风险模板.xlsx" />
<Content Include="Template\遗传风险模板.xlsx" />
<Content Include="Template\Chemotherapy.xlsx" />
<Content Include="Template\Summary.xlsx" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
<Folder Include="App_Data\" />
...
...
G.MES.API/Template/Chemotherapy.xlsx
0 → 100644
查看文件 @
b0a21d5a
File added
G.MES.API/Template/Summary.xlsx
0 → 100644
查看文件 @
b0a21d5a
File added
G.MES.Business/G.BaseInfo/ViewModel/ClientInfoModel/ClientInfoRequestModel.cs
查看文件 @
b0a21d5a
...
@@ -235,10 +235,6 @@ namespace G.Buss.BaseInfo.ViewModel.ClientInfoModel
...
@@ -235,10 +235,6 @@ namespace G.Buss.BaseInfo.ViewModel.ClientInfoModel
/// 检测平台
/// 检测平台
/// </summary>
/// </summary>
public
string
DetectingPlatform
{
get
;
set
;
}
public
string
DetectingPlatform
{
get
;
set
;
}
}
}
public
class
ClientInfoQueryModel
public
class
ClientInfoQueryModel
...
...
WordByDocx/Word/CreateWordReport.cs
查看文件 @
b0a21d5a
...
@@ -28,6 +28,7 @@ namespace WordByDocx.Word
...
@@ -28,6 +28,7 @@ namespace WordByDocx.Word
replaceText
.
ReplaceGeneList
();
replaceText
.
ReplaceGeneList
();
replaceText
.
ReplaceSummary
();
replaceText
.
ReplaceSummary
();
replaceText
.
ReplaceChemotherapy
();
replaceText
.
ReplaceChemotherapy
();
replaceText
.
ReplaceSampleQuality
();
document
.
SaveToFile
(
OutDic
+
"out.docx"
);
document
.
SaveToFile
(
OutDic
+
"out.docx"
);
using
(
var
documentDocx
=
DocX
.
Load
(
OutDic
+
"out.docx"
))
using
(
var
documentDocx
=
DocX
.
Load
(
OutDic
+
"out.docx"
))
{
{
...
...
WordByDocx/Word/GetData.cs
查看文件 @
b0a21d5a
...
@@ -3,6 +3,7 @@ using G.Buss.BaseInfo.ViewModel.ClientInfoModel;
...
@@ -3,6 +3,7 @@ using G.Buss.BaseInfo.ViewModel.ClientInfoModel;
using
G.Buss.BaseInfo.ViewModel.CodeTableModel
;
using
G.Buss.BaseInfo.ViewModel.CodeTableModel
;
using
G.Buss.BaseInfo.ViewModel.GeneCorrelationModel
;
using
G.Buss.BaseInfo.ViewModel.GeneCorrelationModel
;
using
G.Buss.BaseInfo.ViewModel.MISReportModel
;
using
G.Buss.BaseInfo.ViewModel.MISReportModel
;
using
G.Buss.BaseInfo.ViewModel.SampleControlModel
;
using
G.Buss.BaseInfo.ViewModel.TMBGradeRequestModel
;
using
G.Buss.BaseInfo.ViewModel.TMBGradeRequestModel
;
using
G.MES.DataModel
;
using
G.MES.DataModel
;
using
System
;
using
System
;
...
@@ -34,6 +35,12 @@ namespace WordByDocx.Word
...
@@ -34,6 +35,12 @@ namespace WordByDocx.Word
return
svc
.
GetClirntInfo
(
guid
);
return
svc
.
GetClirntInfo
(
guid
);
}
}
/// <summary>
/// 获取样本质控情况
/// </summary>
public
static
List
<
SampleControlQueryModel
>
GetSampleQuality
()
=>
svc
.
GetSampleQuality
();
/// <summary>
/// <summary>
/// 获取检测结果
/// 获取检测结果
/// </summary>
/// </summary>
...
...
WordByDocx/Word/OperationFunc.cs
查看文件 @
b0a21d5a
...
@@ -27,7 +27,7 @@ namespace WordByDocx.Word
...
@@ -27,7 +27,7 @@ namespace WordByDocx.Word
{
{
return
""
;
return
""
;
}
}
return
dateTime
.
ToString
(
);
return
Convert
.
ToDateTime
(
dateTime
.
ToString
()).
ToString
(
"YYYY-MM-dd"
);
}
}
/// <summary>
/// <summary>
/// 创建表格样式
/// 创建表格样式
...
...
WordByDocx/Word/ReplaceText.cs
查看文件 @
b0a21d5a
...
@@ -3,6 +3,7 @@ using G.Buss.BaseInfo.ViewModel.ClientInfoModel;
...
@@ -3,6 +3,7 @@ using G.Buss.BaseInfo.ViewModel.ClientInfoModel;
using
G.Buss.BaseInfo.ViewModel.CodeTableModel
;
using
G.Buss.BaseInfo.ViewModel.CodeTableModel
;
using
G.Buss.BaseInfo.ViewModel.GeneCorrelationModel
;
using
G.Buss.BaseInfo.ViewModel.GeneCorrelationModel
;
using
G.Buss.BaseInfo.ViewModel.MISReportModel
;
using
G.Buss.BaseInfo.ViewModel.MISReportModel
;
using
G.Buss.BaseInfo.ViewModel.SampleControlModel
;
using
G.Buss.BaseInfo.ViewModel.TMBGradeRequestModel
;
using
G.Buss.BaseInfo.ViewModel.TMBGradeRequestModel
;
using
G.MES.DataModel
;
using
G.MES.DataModel
;
using
Spire.Doc
;
using
Spire.Doc
;
...
@@ -331,6 +332,53 @@ namespace WordByDocx.Word
...
@@ -331,6 +332,53 @@ namespace WordByDocx.Word
body2
.
ChildObjects
.
Insert
(
index2
,
table2
);
body2
.
ChildObjects
.
Insert
(
index2
,
table2
);
}
}
/// <summary>
/// 替换样本质控情况
/// </summary>
public
void
ReplaceSampleQuality
()
{
List
<
SampleControlQueryModel
>
Sample
=
GetData
.
GetSampleQuality
();
string
[]
header
=
new
string
[]
{
"质控环节"
,
"质控结果"
};
Section
section
=
document
.
Sections
[
0
];
TextSelection
selection
=
document
.
FindString
(
"#{SampleQuality}"
,
true
,
true
);
TextRange
range
=
selection
.
GetAsOneRange
();
Paragraph
paragraph
=
range
.
OwnerParagraph
;
Body
body
=
paragraph
.
OwnerTextBody
;
int
index
=
body
.
ChildObjects
.
IndexOf
(
paragraph
);
Table
table
=
section
.
AddTable
(
true
);
table
.
ResetCells
(
Sample
.
Count
+
1
,
2
);
//填充数据与样式
TableRow
Frow
=
table
.
Rows
[
0
];
for
(
int
i
=
0
;
i
<
header
.
Length
;
i
++)
{
Frow
.
IsHeader
=
true
;
Frow
.
Height
=
30
;
Frow
.
HeightType
=
TableRowHeightType
.
Exactly
;
Frow
.
RowFormat
.
BackColor
=
Color
.
LimeGreen
;
Frow
.
Cells
[
i
].
CellFormat
.
VerticalAlignment
=
Spire
.
Doc
.
Documents
.
VerticalAlignment
.
Middle
;
Paragraph
p3
=
Frow
.
Cells
[
i
].
AddParagraph
();
p3
.
Format
.
HorizontalAlignment
=
Spire
.
Doc
.
Documents
.
HorizontalAlignment
.
Center
;
p3
.
AppendText
(
header
[
i
]);
}
for
(
int
r
=
0
;
r
<
Sample
.
Count
;
r
++)
{
TableRow
dataRow
=
table
.
Rows
[
r
+
1
];
dataRow
.
Height
=
25
;
//质控步骤
dataRow
.
Cells
[
0
].
CellFormat
.
VerticalAlignment
=
Spire
.
Doc
.
Documents
.
VerticalAlignment
.
Middle
;
Paragraph
p
=
dataRow
.
Cells
[
0
].
AddParagraph
();
p
.
Format
.
HorizontalAlignment
=
Spire
.
Doc
.
Documents
.
HorizontalAlignment
.
Center
;
p
.
AppendText
(
Sample
[
r
].
ControlStep
);
//质控结果
dataRow
.
Cells
[
1
].
CellFormat
.
VerticalAlignment
=
Spire
.
Doc
.
Documents
.
VerticalAlignment
.
Middle
;
Paragraph
p1
=
dataRow
.
Cells
[
1
].
AddParagraph
();
p1
.
Format
.
HorizontalAlignment
=
Spire
.
Doc
.
Documents
.
HorizontalAlignment
.
Center
;
p1
.
AppendText
(
Sample
[
r
].
ControlResult
);
}
body
.
ChildObjects
.
Remove
(
paragraph
);
body
.
ChildObjects
.
Insert
(
index
,
table
);
}
/// <summary>
/// <summary>
...
...
WordByDocx/template/参考报告.docx
查看文件 @
b0a21d5a
No preview for this file type
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论