123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- @page "/CompareFile/List"
- @inject IAgentFeedBackMemoItemsService _afService;
- @inject IAuthService _authService;
- @attribute [Authorize]
- <PageContainer>
- <Breadcrumb>
- <Breadcrumb>
- <BreadcrumbItem>
- <a href="/Home"><Icon Type="home"></Icon></a>
- </BreadcrumbItem>
- <BreadcrumbItem>
- <Icon Type="setting"></Icon><span>申请文件比较清单</span>
- </BreadcrumbItem>
- </Breadcrumb>
- </Breadcrumb>
- <Content>
- @*<Button Type="primary" Icon="plus" OnClick="AddNew" Style="float:right">添加</Button>*@
- </Content>
- <ChildContent>
- <div style="width:100%;overflow:auto;background:#FFFFFF;height:100%;" id="div-Container">
- <AntList Bordered DataSource="@_caseList">
- <Header>
- <Row>
- <Col Span="4">
- <Select TItem="Field"
- TItemValue="string"
- DataSource="@_fields"
- LabelName="@nameof(Field.FieldName)"
- ValueName="@nameof(Field.FieldValue)"
- Placeholder="请选择检索栏位"
- DefaultActiveFirstOption="false"
- OnSelectedItemChanged="OnSelectedItemChangedHandler"
- >
- </Select>
- </Col>
- <Col Span="6">
- <Input Placeholder="请输入检索条件" @bind-Value="@txtValue" />
- </Col>
- <Col Span="4">
- <Button Type="@ButtonType.Primary" Icon="@IconType.Outline.Search" OnClick="OnSearch">搜索</Button>
- </Col>
- <Col>
- @if (_filter !=null && _filter.ConditionTree !=null && _filter.ConditionTree?.Count > 0)
- {
- foreach(var c in _filter.ConditionTree)
- {
- <Tag Closable OnClose="()=>RemoveCondition(c)">@ConvertFiledCondition2String(c)</Tag>
- }
- }
- </Col>
- </Row>
-
-
-
- </Header>
- <ChildContent Context="item">
- <ListItem>
- <PageHeader Ghost="false">
- <PageHeaderTitle>@item.CaseNo</PageHeaderTitle>
- <PageHeaderSubtitle>@item.CaseName</PageHeaderSubtitle>
- <PageHeaderExtra>
- <Button Type="@ButtonType.Link" @onclick="()=>Showdetail(item)">详情</Button>
- </PageHeaderExtra>
- <PageHeaderContent>
- <Descriptions Size="small" Column="3">
-
- <DescriptionsItem Title="处理人" Span="1">@item.Handlers</DescriptionsItem>
- <DescriptionsItem Title="核稿人" Span="1">@item.Reviewer?.Name</DescriptionsItem>
- <DescriptionsItem Span="1">
- <Space>
- <SpaceItem>
- @if(item.DRRCalim != null)
- {
- <Statistic Title="初稿&返稿权要相似度" Value="@($"{(item.DRRCalim.TextSimilarity*100.00).ToString("0.00")}%")" PrefixTemplate="@prefix1" />
- }
- else
- {
- <Statistic Title="返稿&定稿权要相似度" Value="0" PrefixTemplate="@prefix1" />
- }
- </SpaceItem>
- <SpaceItem>
- @if(item.RFRAll != null)
- {
- <Statistic Title="返稿&定稿相似度" Value="@($"{(item.RFRAll.TextSimilarity*100.00).ToString("0.00")}%")" PrefixTemplate="@prefix1" />
- }
- else
- {
- <Statistic Title="返稿&定稿相似度" Value="0" PrefixTemplate="@prefix1" />
- }
- </SpaceItem>
- </Space>
- </DescriptionsItem>
- <DescriptionsItem Title="客户" Span="3">@item.Customer?.Name</DescriptionsItem>
-
- </Descriptions>
- </PageHeaderContent>
- </PageHeader>
-
- </ListItem>
- </ChildContent>
- <Footer>
- <div>
- @if (((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1)) > 1)
- {
- <div style="float:right">
- @if (_pageIndex > 1)
- {
- <Tooltip Title="@("上一页")">
- <Button Type="@ButtonType.Default" Icon="@IconType.Outline.LeftCircle" OnClick="()=>OnPageChange(_pageIndex-1)"/>
- </Tooltip>
- }
- else
- {
- <Tooltip Title="@("上一页")">
- <Button Type="@ButtonType.Default" Icon="@IconType.Outline.LeftCircle" OnClick="()=>OnPageChange(_pageIndex-1)"
- Disabled
- />
- </Tooltip>
- }
- @{
- int _totalPages = ((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1));
- int start = ((_pageIndex - 5) < 0 ? 1 : (_pageIndex - 5));
- int end = ((_pageIndex + 5) > _totalPages ? _totalPages : (_pageIndex + 5));
- Console.WriteLine($"开始:{start},结束:{end}");
- for (int iPage = start; iPage <= end; iPage++)
- {
- int iTem = iPage;
- if (iTem == _pageIndex)
- {
- <Button Type="@ButtonType.Primary" Shape="@ButtonShape.Circle">@((MarkupString)iTem.ToString())</Button>
- }
- else
- {
- <Button Type="@ButtonType.Default" Shape="@ButtonShape.Circle" OnClick="()=>OnPageChange(iTem)">@((MarkupString)iTem.ToString())</Button>
- }
- }
- }
- @if (_pageIndex < ((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1)))
- {
- <Tooltip Title="@("下一页")">
- <Button Type="@ButtonType.Default" Icon="@IconType.Outline.RightCircle" OnClick="()=>OnPageChange(_pageIndex+1)"/>
- </Tooltip>
- }
- else
- {
- <Tooltip Title="@("下一页")">
- <Button Type="@ButtonType.Default" Icon="@IconType.Outline.RightCircle" OnClick="()=>OnPageChange(_pageIndex+1)"
- Disabled
- />
- </Tooltip>
- }
- 总数:@_total
- </div>
- }
- </div>
- </Footer>
- </AntList>
-
- </div>
-
- </ChildContent>
- </PageContainer>
- <Modal Title="@("对比详情")"
- Visible="@_DetailShow"
- OnOk="@btnOk"
- OnCancel="@btnCancel"
- Centered="@true"
- Width="800"
- >
- <label for="result">对比结果:</label>
- <div>
- <RadioGroup @bind-Value="@_value" >
- <Radio Value="1">初稿&第一次返稿对比</Radio>
- <Radio Value="2">第一次返稿&定稿对比</Radio>
- </RadioGroup>
- </div>
- <div id="result">
- <table width="100%" border="1">
- <thead>
- <tr>
- <td></td>
- <td>权利要求</td>
- <td>摘要</td>
- <td>说明书</td>
- <td>全部对比</td>
- </tr>
- </thead>
- <tbody>
- <tr>
-
- <td>语义相似度[%]</td>
- @if (_value == 1)
- {
- <td> @($"{(_currentCase.DRRCalim?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRAbstract?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRAll?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- }
- else
- {
- <td>@($"{(_currentCase.RFRCalim?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRAbstract?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRAll?.TextSimilarity * 100)?.ToString("0.00")}")</td>
- }
- </tr>
- <tr>
- <td>原文字数</td>
- @if (_value == 1)
- {
- <td>@_currentCase.DRRCalim?.oldWordCount</td>
- <td>@_currentCase.DRRAbstract?.oldWordCount</td>
- <td>@_currentCase.DRRFulltext?.oldWordCount</td>
- <td>@_currentCase.DRRAll?.oldWordCount</td>
- }
- else
- {
- <td>@_currentCase.RFRCalim?.oldWordCount</td>
- <td>@_currentCase.RFRAbstract?.oldWordCount</td>
- <td>@_currentCase.RFRFulltext?.oldWordCount</td>
- <td>@_currentCase.RFRAll?.oldWordCount</td>
- }
-
- </tr>
- <tr>
- <td>删除字数</td>
- @if (_value == 1)
- {
- <td>@_currentCase.DRRCalim?.DeleteCount</td>
- <td>@_currentCase.DRRAbstract?.DeleteCount</td>
- <td>@_currentCase.DRRFulltext?.DeleteCount</td>
- <td>@_currentCase.DRRAll?.DeleteCount</td>
- }
- else
- {
- <td>@_currentCase.RFRCalim?.DeleteCount</td>
- <td>@_currentCase.RFRAbstract?.DeleteCount</td>
- <td>@_currentCase.RFRFulltext?.DeleteCount</td>
- <td>@_currentCase.RFRAll?.DeleteCount</td>
- }
-
- </tr>
- <tr>
- <td>插入字数</td>
- @if (_value == 1)
- {
- <td>@_currentCase.DRRCalim?.InsertCount</td>
- <td>@_currentCase.DRRAbstract?.InsertCount</td>
- <td>@_currentCase.DRRFulltext?.InsertCount</td>
- <td>@_currentCase.DRRAll?.InsertCount</td>
- }
- else
- {
- <td>@_currentCase.RFRCalim?.InsertCount</td>
- <td>@_currentCase.RFRAbstract?.InsertCount</td>
- <td>@_currentCase.RFRFulltext?.InsertCount</td>
- <td>@_currentCase.RFRAll?.InsertCount</td>
- }
-
- </tr>
- <tr>
- <td>修改比例[%]</td>
- @if (_value == 1)
- {
- <td> @($"{(_currentCase.DRRCalim?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRAbstract?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.DRRAll?.diffRate*100)?.ToString("0.00")}")</td>
- }
- else
- {
- <td> @($"{(_currentCase.RFRCalim?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRAbstract?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
- <td>@($"{(_currentCase.RFRAll?.diffRate*100)?.ToString("0.00")}")</td>
- }
-
- </tr>
- </tbody>
- </table>
- </div>
- <div>
- <label>修订文字:</label>
- <RadioGroup @bind-Value="@_ShowResultString" >
- <Radio Value="1">权要</Radio>
- <Radio Value="2">摘要</Radio>
- <Radio Value="3">说明书</Radio>
- <Radio Value="4">全文</Radio>
- </RadioGroup>
- </div>
- <div style="user-select:text !important;width:100%;height:300px;overflow: auto;border: 2px solid black;padding: 10px;">
- @if(_ShowResultString==1 && _value == 1)
- {
- @((MarkupString)_currentCase.DRRCalim?.CompareResultString)
- }
- @if(_ShowResultString==2 && _value == 1)
- {
- @((MarkupString)_currentCase.DRRAbstract?.CompareResultString)
- }
- @if(_ShowResultString==3 && _value == 1)
- {
- @((MarkupString)_currentCase.DRRFulltext?.CompareResultString)
- }
- @if(_ShowResultString==4 && _value == 1)
- {
- @((MarkupString)_currentCase.DRRAll?.CompareResultString)
- }
- @if(_ShowResultString==1 && _value == 2)
- {
- @((MarkupString)_currentCase.RFRCalim?.CompareResultString)
- }
- @if(_ShowResultString==2 && _value == 2)
- {
- @((MarkupString)_currentCase.RFRAbstract?.CompareResultString)
- }
- @if(_ShowResultString==3 && _value == 2)
- {
- @((MarkupString)_currentCase.RFRFulltext?.CompareResultString)
- }
- @if(_ShowResultString==4 && _value == 2)
- {
- @((MarkupString)_currentCase.RFRAll?.CompareResultString)
- }
- </div>
-
- </Modal>
- @code
- {
- RenderFragment prefix1 =@<Icon Type="like" />;
- }
|