프로젝트

일반

사용자정보

개정판 6c9fec59

ID6c9fec59e8373109557d1d2a038306486449bbb0
상위 b3251eea
하위 1fdcd6ff, f57623ba

김동진이(가) 5년 이상 전에 추가함

issue #1022: doc info & markup data select service add

Change-Id: I77fd616bd76835bf2ce490bf3a35a8ccb4824935

차이점 보기:

FinalService/KCOM_FinalService/CommonLib/CommonLib.csproj
65 65
    <None Include="Connected Services\MARKUS_API\CommonLib.MARKUS_API.DOCINFO.datasource">
66 66
      <DependentUpon>Reference.svcmap</DependentUpon>
67 67
    </None>
68
    <None Include="Connected Services\MARKUS_API\CommonLib.MARKUS_API.DOCPAGE.datasource">
69
      <DependentUpon>Reference.svcmap</DependentUpon>
70
    </None>
68 71
    <None Include="Connected Services\MARKUS_API\CommonLib.MARKUS_API.DOCUMENT_ITEM.datasource">
69 72
      <DependentUpon>Reference.svcmap</DependentUpon>
70 73
    </None>
......
138 141
    <WCFMetadataStorage Include="Connected Services\MARKUS_API\" />
139 142
  </ItemGroup>
140 143
  <ItemGroup>
141
    <None Include="Connected Services\MARKUS_API\ServiceDeepView.disco" />
142
  </ItemGroup>
143
  <ItemGroup>
144 144
    <None Include="Connected Services\MARKUS_API\configuration91.svcinfo" />
145 145
  </ItemGroup>
146 146
  <ItemGroup>
......
152 152
      <LastGenOutput>Reference.cs</LastGenOutput>
153 153
    </None>
154 154
  </ItemGroup>
155
  <ItemGroup>
156
    <None Include="Connected Services\MARKUS_API\ServiceDeepView.disco" />
157
  </ItemGroup>
155 158
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
156 159
</Project>
FinalService/KCOM_FinalService/CommonLib/Connected Services/MARKUS_API/Reference.cs
3945 3945
        
3946 3946
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/GetMessage", ReplyAction="urn:ServiceDeepView/GetMessageResponse")]
3947 3947
        CommonLib.MARKUS_API.TALK[] GetMessage(string project_no, string doc_id);
3948
        
3949
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetDocinfo", ReplyAction="urn:ServiceDeepView/FinalPDF_GetDocinfoResponse")]
3950
        CommonLib.MARKUS_API.DOCINFO FinalPDF_GetDocinfo(string project_no, string docinfo_id);
3951
        
3952
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetDocumentItem", ReplyAction="urn:ServiceDeepView/FinalPDF_GetDocumentItemResponse")]
3953
        CommonLib.MARKUS_API.DOCUMENT_ITEM FinalPDF_GetDocumentItem(string project_no, string document_id);
3954
        
3955
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetMarkupdata", ReplyAction="urn:ServiceDeepView/FinalPDF_GetMarkupdataResponse")]
3956
        CommonLib.MARKUS_API.MARKUP_DATA[] FinalPDF_GetMarkupdata(string project_no, string docinfo_id);
3957
        
3958
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetMarkupinfo", ReplyAction="urn:ServiceDeepView/FinalPDF_GetMarkupinfoResponse")]
3959
        CommonLib.MARKUS_API.MARKUP_INFO FinalPDF_GetMarkupinfo(string project_no, string docinfo_id);
3960
        
3961
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetDocpage", ReplyAction="urn:ServiceDeepView/FinalPDF_GetDocpageResponse")]
3962
        CommonLib.MARKUS_API.DOCPAGE[] FinalPDF_GetDocpage(string project_no, string docinfo_id);
3948 3963
    }
3949 3964
    
3950 3965
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
......
4209 4224
        public CommonLib.MARKUS_API.TALK[] GetMessage(string project_no, string doc_id) {
4210 4225
            return base.Channel.GetMessage(project_no, doc_id);
4211 4226
        }
4227
        
4228
        public CommonLib.MARKUS_API.DOCINFO FinalPDF_GetDocinfo(string project_no, string docinfo_id) {
4229
            return base.Channel.FinalPDF_GetDocinfo(project_no, docinfo_id);
4230
        }
4231
        
4232
        public CommonLib.MARKUS_API.DOCUMENT_ITEM FinalPDF_GetDocumentItem(string project_no, string document_id) {
4233
            return base.Channel.FinalPDF_GetDocumentItem(project_no, document_id);
4234
        }
4235
        
4236
        public CommonLib.MARKUS_API.MARKUP_DATA[] FinalPDF_GetMarkupdata(string project_no, string docinfo_id) {
4237
            return base.Channel.FinalPDF_GetMarkupdata(project_no, docinfo_id);
4238
        }
4239
        
4240
        public CommonLib.MARKUS_API.MARKUP_INFO FinalPDF_GetMarkupinfo(string project_no, string docinfo_id) {
4241
            return base.Channel.FinalPDF_GetMarkupinfo(project_no, docinfo_id);
4242
        }
4243
        
4244
        public CommonLib.MARKUS_API.DOCPAGE[] FinalPDF_GetDocpage(string project_no, string docinfo_id) {
4245
            return base.Channel.FinalPDF_GetDocpage(project_no, docinfo_id);
4246
        }
4212 4247
    }
4213 4248
}
FinalService/KCOM_FinalService/CommonLib/Connected Services/MARKUS_API/Reference.svcmap
21 21
    <MetadataSource Address="http://localhost:13009/ServiceDeepView.svc" Protocol="http" SourceId="1" />
22 22
  </MetadataSources>
23 23
  <Metadata>
24
    <MetadataFile FileName="ServiceDeepView.xsd" MetadataType="Schema" ID="bdefe841-f392-4d53-8d09-ab209d1d0dae" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd7" />
25
    <MetadataFile FileName="ServiceDeepView1.xsd" MetadataType="Schema" ID="11211a24-38a5-4f45-9771-f8af8474d83a" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd4" />
26
    <MetadataFile FileName="ServiceDeepView2.xsd" MetadataType="Schema" ID="06f5aadf-c511-4104-a780-528a8a6e5c80" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd2" />
27
    <MetadataFile FileName="ServiceDeepView.disco" MetadataType="Disco" ID="9d7882be-6ce6-4ad7-ba87-95d03b3a8378" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?disco" />
28
    <MetadataFile FileName="ServiceDeepView3.xsd" MetadataType="Schema" ID="d3584142-2e0a-4854-9ee9-cfd24060bf9f" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd5" />
29
    <MetadataFile FileName="ServiceDeepView4.xsd" MetadataType="Schema" ID="b1caa1df-7b68-46c7-8808-ff92c84fb226" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd1" />
30
    <MetadataFile FileName="ServiceDeepView.wsdl" MetadataType="Wsdl" ID="5d7ae118-a049-4215-a4be-60f4529e2785" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?wsdl=wsdl0" />
31
    <MetadataFile FileName="ServiceDeepView5.xsd" MetadataType="Schema" ID="321f1977-faad-42ab-b4a1-1ea09495d650" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd6" />
32
    <MetadataFile FileName="ServiceDeepView6.xsd" MetadataType="Schema" ID="67244508-d777-4bc5-9326-52e28d523d46" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd0" />
33
    <MetadataFile FileName="ServiceDeepView1.wsdl" MetadataType="Wsdl" ID="e69406c8-6ff4-4413-85c2-ddf8cddc6f98" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?wsdl" />
34
    <MetadataFile FileName="ServiceDeepView7.xsd" MetadataType="Schema" ID="e609e2ec-4cda-4676-a3d0-efe412af4bb7" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd8" />
35
    <MetadataFile FileName="ServiceDeepView8.xsd" MetadataType="Schema" ID="a8124c17-f87d-46fd-ae5a-6051c973397d" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd3" />
24
    <MetadataFile FileName="ServiceDeepView.xsd" MetadataType="Schema" ID="dd5f7fd8-e871-4f29-b543-fb23284bb8d3" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd7" />
25
    <MetadataFile FileName="ServiceDeepView1.xsd" MetadataType="Schema" ID="8e47d6a4-5391-4858-8199-9e72f3368af7" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd4" />
26
    <MetadataFile FileName="ServiceDeepView2.xsd" MetadataType="Schema" ID="dadcc362-9bfe-45a0-b045-548fa8fadc72" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd2" />
27
    <MetadataFile FileName="ServiceDeepView.disco" MetadataType="Disco" ID="d27fef0f-d1f4-4713-906b-d102f5930b9d" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?disco" />
28
    <MetadataFile FileName="ServiceDeepView3.xsd" MetadataType="Schema" ID="a64b799b-9cf8-40e9-9562-b0896650ad1d" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd5" />
29
    <MetadataFile FileName="ServiceDeepView4.xsd" MetadataType="Schema" ID="37afc60a-6f99-4f6c-8a06-550c6220d350" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd1" />
30
    <MetadataFile FileName="ServiceDeepView.wsdl" MetadataType="Wsdl" ID="85b742b9-ac48-45ab-81e9-62de7c6652e4" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?wsdl=wsdl0" />
31
    <MetadataFile FileName="ServiceDeepView5.xsd" MetadataType="Schema" ID="ad12f6d9-93ed-4fd3-9fa1-a3b402dd70df" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd6" />
32
    <MetadataFile FileName="ServiceDeepView6.xsd" MetadataType="Schema" ID="2e15b151-3e55-4867-98c7-7795aea104f9" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd0" />
33
    <MetadataFile FileName="ServiceDeepView1.wsdl" MetadataType="Wsdl" ID="1a87718e-660b-452e-9ed1-1b5f842f6e1e" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?wsdl" />
34
    <MetadataFile FileName="ServiceDeepView7.xsd" MetadataType="Schema" ID="43ff0327-2e74-4271-a2ed-8ab93cfe5470" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd8" />
35
    <MetadataFile FileName="ServiceDeepView8.xsd" MetadataType="Schema" ID="59457217-172f-4f4a-9184-dc2fc1ac2134" SourceId="1" SourceUrl="http://localhost:13009/ServiceDeepView.svc?xsd=xsd3" />
36 36
  </Metadata>
37 37
  <Extensions>
38 38
    <ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
FinalService/KCOM_FinalService/CommonLib/Connected Services/MARKUS_API/ServiceDeepView.wsdl
367 367
  <wsdl:message name="ServiceDeepView_GetMessage_OutputMessage">
368 368
    <wsdl:part name="parameters" element="GetMessageResponse" />
369 369
  </wsdl:message>
370
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocinfo_InputMessage">
371
    <wsdl:part name="parameters" element="FinalPDF_GetDocinfo" />
372
  </wsdl:message>
373
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocinfo_OutputMessage">
374
    <wsdl:part name="parameters" element="FinalPDF_GetDocinfoResponse" />
375
  </wsdl:message>
376
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocumentItem_InputMessage">
377
    <wsdl:part name="parameters" element="FinalPDF_GetDocumentItem" />
378
  </wsdl:message>
379
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocumentItem_OutputMessage">
380
    <wsdl:part name="parameters" element="FinalPDF_GetDocumentItemResponse" />
381
  </wsdl:message>
382
  <wsdl:message name="ServiceDeepView_FinalPDF_GetMarkupdata_InputMessage">
383
    <wsdl:part name="parameters" element="FinalPDF_GetMarkupdata" />
384
  </wsdl:message>
385
  <wsdl:message name="ServiceDeepView_FinalPDF_GetMarkupdata_OutputMessage">
386
    <wsdl:part name="parameters" element="FinalPDF_GetMarkupdataResponse" />
387
  </wsdl:message>
388
  <wsdl:message name="ServiceDeepView_FinalPDF_GetMarkupinfo_InputMessage">
389
    <wsdl:part name="parameters" element="FinalPDF_GetMarkupinfo" />
390
  </wsdl:message>
391
  <wsdl:message name="ServiceDeepView_FinalPDF_GetMarkupinfo_OutputMessage">
392
    <wsdl:part name="parameters" element="FinalPDF_GetMarkupinfoResponse" />
393
  </wsdl:message>
394
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocpage_InputMessage">
395
    <wsdl:part name="parameters" element="FinalPDF_GetDocpage" />
396
  </wsdl:message>
397
  <wsdl:message name="ServiceDeepView_FinalPDF_GetDocpage_OutputMessage">
398
    <wsdl:part name="parameters" element="FinalPDF_GetDocpageResponse" />
399
  </wsdl:message>
370 400
  <wsdl:portType name="ServiceDeepView">
371 401
    <wsdl:operation name="GetSystemData">
372 402
      <wsdl:input wsaw:Action="urn:ServiceDeepView/GetSystemData" message="ServiceDeepView_GetSystemData_InputMessage" />
......
604 634
      <wsdl:input wsaw:Action="urn:ServiceDeepView/GetMessage" message="ServiceDeepView_GetMessage_InputMessage" />
605 635
      <wsdl:output wsaw:Action="urn:ServiceDeepView/GetMessageResponse" message="ServiceDeepView_GetMessage_OutputMessage" />
606 636
    </wsdl:operation>
637
    <wsdl:operation name="FinalPDF_GetDocinfo">
638
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocinfo" message="ServiceDeepView_FinalPDF_GetDocinfo_InputMessage" />
639
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocinfoResponse" message="ServiceDeepView_FinalPDF_GetDocinfo_OutputMessage" />
640
    </wsdl:operation>
641
    <wsdl:operation name="FinalPDF_GetDocumentItem">
642
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocumentItem" message="ServiceDeepView_FinalPDF_GetDocumentItem_InputMessage" />
643
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocumentItemResponse" message="ServiceDeepView_FinalPDF_GetDocumentItem_OutputMessage" />
644
    </wsdl:operation>
645
    <wsdl:operation name="FinalPDF_GetMarkupdata">
646
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetMarkupdata" message="ServiceDeepView_FinalPDF_GetMarkupdata_InputMessage" />
647
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetMarkupdataResponse" message="ServiceDeepView_FinalPDF_GetMarkupdata_OutputMessage" />
648
    </wsdl:operation>
649
    <wsdl:operation name="FinalPDF_GetMarkupinfo">
650
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetMarkupinfo" message="ServiceDeepView_FinalPDF_GetMarkupinfo_InputMessage" />
651
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetMarkupinfoResponse" message="ServiceDeepView_FinalPDF_GetMarkupinfo_OutputMessage" />
652
    </wsdl:operation>
653
    <wsdl:operation name="FinalPDF_GetDocpage">
654
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocpage" message="ServiceDeepView_FinalPDF_GetDocpage_InputMessage" />
655
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetDocpageResponse" message="ServiceDeepView_FinalPDF_GetDocpage_OutputMessage" />
656
    </wsdl:operation>
607 657
  </wsdl:portType>
608 658
</wsdl:definitions>
FinalService/KCOM_FinalService/CommonLib/Connected Services/MARKUS_API/ServiceDeepView1.wsdl
535 535
        <soap:body use="literal" />
536 536
      </wsdl:output>
537 537
    </wsdl:operation>
538
    <wsdl:operation name="FinalPDF_GetDocinfo">
539
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetDocinfo" style="document" />
540
      <wsdl:input>
541
        <soap:body use="literal" />
542
      </wsdl:input>
543
      <wsdl:output>
544
        <soap:body use="literal" />
545
      </wsdl:output>
546
    </wsdl:operation>
547
    <wsdl:operation name="FinalPDF_GetDocumentItem">
548
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetDocumentItem" style="document" />
549
      <wsdl:input>
550
        <soap:body use="literal" />
551
      </wsdl:input>
552
      <wsdl:output>
553
        <soap:body use="literal" />
554
      </wsdl:output>
555
    </wsdl:operation>
556
    <wsdl:operation name="FinalPDF_GetMarkupdata">
557
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetMarkupdata" style="document" />
558
      <wsdl:input>
559
        <soap:body use="literal" />
560
      </wsdl:input>
561
      <wsdl:output>
562
        <soap:body use="literal" />
563
      </wsdl:output>
564
    </wsdl:operation>
565
    <wsdl:operation name="FinalPDF_GetMarkupinfo">
566
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetMarkupinfo" style="document" />
567
      <wsdl:input>
568
        <soap:body use="literal" />
569
      </wsdl:input>
570
      <wsdl:output>
571
        <soap:body use="literal" />
572
      </wsdl:output>
573
    </wsdl:operation>
574
    <wsdl:operation name="FinalPDF_GetDocpage">
575
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetDocpage" style="document" />
576
      <wsdl:input>
577
        <soap:body use="literal" />
578
      </wsdl:input>
579
      <wsdl:output>
580
        <soap:body use="literal" />
581
      </wsdl:output>
582
    </wsdl:operation>
538 583
  </wsdl:binding>
539 584
  <wsdl:service name="ServiceDeepView">
540 585
    <wsdl:port name="DeepViewPoint" binding="tns:DeepViewPoint">
FinalService/KCOM_FinalService/CommonLib/Connected Services/MARKUS_API/ServiceDeepView6.xsd
917 917
      </xs:sequence>
918 918
    </xs:complexType>
919 919
  </xs:element>
920
  <xs:element name="FinalPDF_GetDocinfo">
921
    <xs:complexType>
922
      <xs:sequence>
923
        <xs:element minOccurs="0" name="project_no" nillable="true" type="xs:string" />
924
        <xs:element minOccurs="0" name="docinfo_id" nillable="true" type="xs:string" />
925
      </xs:sequence>
926
    </xs:complexType>
927
  </xs:element>
928
  <xs:element name="FinalPDF_GetDocinfoResponse">
929
    <xs:complexType>
930
      <xs:sequence>
931
        <xs:element xmlns:q52="http://schemas.datacontract.org/2004/07/KCOMDataModel.DataModel" minOccurs="0" name="FinalPDF_GetDocinfoResult" nillable="true" type="q52:DOCINFO" />
932
      </xs:sequence>
933
    </xs:complexType>
934
  </xs:element>
935
  <xs:element name="FinalPDF_GetDocumentItem">
936
    <xs:complexType>
937
      <xs:sequence>
938
        <xs:element minOccurs="0" name="project_no" nillable="true" type="xs:string" />
939
        <xs:element minOccurs="0" name="document_id" nillable="true" type="xs:string" />
940
      </xs:sequence>
941
    </xs:complexType>
942
  </xs:element>
943
  <xs:element name="FinalPDF_GetDocumentItemResponse">
944
    <xs:complexType>
945
      <xs:sequence>
946
        <xs:element xmlns:q53="http://schemas.datacontract.org/2004/07/KCOMDataModel.DataModel" minOccurs="0" name="FinalPDF_GetDocumentItemResult" nillable="true" type="q53:DOCUMENT_ITEM" />
947
      </xs:sequence>
948
    </xs:complexType>
949
  </xs:element>
950
  <xs:element name="FinalPDF_GetMarkupdata">
951
    <xs:complexType>
952
      <xs:sequence>
953
        <xs:element minOccurs="0" name="project_no" nillable="true" type="xs:string" />
954
        <xs:element minOccurs="0" name="docinfo_id" nillable="true" type="xs:string" />
955
      </xs:sequence>
956
    </xs:complexType>
957
  </xs:element>
958
  <xs:element name="FinalPDF_GetMarkupdataResponse">
959
    <xs:complexType>
960
      <xs:sequence>
961
        <xs:element xmlns:q54="http://schemas.datacontract.org/2004/07/KCOMDataModel.DataModel" minOccurs="0" name="FinalPDF_GetMarkupdataResult" nillable="true" type="q54:ArrayOfMARKUP_DATA" />
962
      </xs:sequence>
963
    </xs:complexType>
964
  </xs:element>
965
  <xs:element name="FinalPDF_GetMarkupinfo">
966
    <xs:complexType>
967
      <xs:sequence>
968
        <xs:element minOccurs="0" name="project_no" nillable="true" type="xs:string" />
969
        <xs:element minOccurs="0" name="docinfo_id" nillable="true" type="xs:string" />
970
      </xs:sequence>
971
    </xs:complexType>
972
  </xs:element>
973
  <xs:element name="FinalPDF_GetMarkupinfoResponse">
974
    <xs:complexType>
975
      <xs:sequence>
976
        <xs:element xmlns:q55="http://schemas.datacontract.org/2004/07/KCOMDataModel.DataModel" minOccurs="0" name="FinalPDF_GetMarkupinfoResult" nillable="true" type="q55:MARKUP_INFO" />
977
      </xs:sequence>
978
    </xs:complexType>
979
  </xs:element>
980
  <xs:element name="FinalPDF_GetDocpage">
981
    <xs:complexType>
982
      <xs:sequence>
983
        <xs:element minOccurs="0" name="project_no" nillable="true" type="xs:string" />
984
        <xs:element minOccurs="0" name="docinfo_id" nillable="true" type="xs:string" />
985
      </xs:sequence>
986
    </xs:complexType>
987
  </xs:element>
988
  <xs:element name="FinalPDF_GetDocpageResponse">
989
    <xs:complexType>
990
      <xs:sequence>
991
        <xs:element xmlns:q56="http://schemas.datacontract.org/2004/07/KCOMDataModel.DataModel" minOccurs="0" name="FinalPDF_GetDocpageResult" nillable="true" type="q56:ArrayOfDOCPAGE" />
992
      </xs:sequence>
993
    </xs:complexType>
994
  </xs:element>
920 995
</xs:schema>
FinalService/KCOM_FinalService/MarkupToPDF/Common/DataController.cs
24 24
            }
25 25
            return imageBytes;
26 26
        }
27
        public CommonLib.MARKUS_API.MEMBER GetMemberInfo(string project_no, string user_id)
28
        {
29
            return CommonLib.WebServiceProxy.WebService().GetMember(project_no, user_id);
30
        }
31
        public CommonLib.MARKUS_API.DOCINFO GetDocInfo(string project_no, string docinfo_id)
32
        {
33
            return CommonLib.WebServiceProxy.WebService().FinalPDF_GetDocinfo(project_no, docinfo_id);
34
        }
35
        public List<CommonLib.MARKUS_API.DOCPAGE> GetDocpage(string project_no, string docinfo_id)
36
        {
37
            return CommonLib.WebServiceProxy.WebService().FinalPDF_GetDocpage(project_no, docinfo_id).ToList();
38
        }
39
        public CommonLib.MARKUS_API.MARKUP_INFO GetMarkupInfo(string project_no, string docinfo_id)
40
        {
41
            return CommonLib.WebServiceProxy.WebService().FinalPDF_GetMarkupinfo(project_no, docinfo_id);
42
        }
43
        public List<CommonLib.MARKUS_API.MARKUP_DATA> GetMarkupData(string project_no, string docinfo_id)
44
        {
45
            return CommonLib.WebServiceProxy.WebService().FinalPDF_GetMarkupdata(project_no, docinfo_id).ToList();
46
        }
47
        public CommonLib.MARKUS_API.DOCUMENT_ITEM GetDocumentItem(string project_no, string document_id)
48
        {
49
            return CommonLib.WebServiceProxy.WebService().FinalPDF_GetDocumentItem(project_no, document_id);
50
        }
51

  
27 52
        #region IDisposable Support 
28 53

  
29 54
        protected virtual void Dispose(bool disposing)
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs
2 2
using iTextSharp.text.pdf;
3 3
using KCOMDataModel.Common;
4 4
using KCOMDataModel.DataModel;
5
using MarkupToPDF.Common;
5 6
using MarkupToPDF.Controls.Common;
6 7
using MarkupToPDF.Serialize.Core;
7 8
using MarkupToPDF.Serialize.S_Control;
......
29 30
        private string _FinalPDFStorgeRemote = null;
30 31
        private string OriginFileName = null;
31 32
        public FINAL_PDF FinalItem;
32
        public DOCINFO DocInfoItem = null;
33
        public List<DOCPAGE> DocPageItem = null;
34
        public MARKUP_INFO MarkupInfoItem = null;
35
        public List<MARKUP_DATA> MarkupDataSet = null;
33
        public CommonLib.MARKUS_API.DOCINFO DocInfoItem = null;
34
        public List<CommonLib.MARKUS_API.DOCPAGE> DocPageItem = null;
35
        public CommonLib.MARKUS_API.MARKUP_INFO MarkupInfoItem = null;
36
        public List<CommonLib.MARKUS_API.MARKUP_DATA> MarkupDataSet = null;
36 37
        //private string _PrintPDFStorgeLocal = null;
37 38
        //private string _PrintPDFStorgeRemote = null;
38 39
        public event EventHandler<MakeFinalErrorArgs> FinalMakeError;
......
138 139
        public void MakeFinalPDF(object _FinalPDF)
139 140
        {
140 141
            
141
            DOCUMENT_ITEM documentItem;
142
            CommonLib.MARKUS_API.DOCUMENT_ITEM documentItem;
142 143
            FINAL_PDF FinalPDF = (FINAL_PDF)_FinalPDF;
143 144
            FinalItem = FinalPDF;
144 145

  
......
185 186
            #region 문서 복사
186 187
            try
187 188
            {
188
                using (CIEntities _entity = new CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(FinalPDF.PROJECT_NO).ToString()))
189
                using (DataController dc = new DataController())
189 190
                {
190
                    var _DOCINFO = _entity.DOCINFO.Where(doc => doc.ID == FinalPDF.DOCINFO_ID);
191
                    //var _DOCINFO = _entity.DOCINFO.Where(doc => doc.ID == FinalPDF.DOCINFO_ID);
192
                    string project_no = FinalPDF.PROJECT_NO;
193
                    string docinfo_id = FinalPDF.DOCINFO_ID;
191 194

  
192
                    if (_DOCINFO.Count() > 0)
195
                    var _DOCINFO = dc.GetDocInfo(project_no, docinfo_id);
196
                    if (_DOCINFO != null)
193 197
                    {
194
                        DocInfoItem = _DOCINFO.FirstOrDefault();
195
                        DocPageItem = DocInfoItem.DOCPAGE.ToList();
198
                        DocInfoItem = _DOCINFO;
199
                        DocPageItem = dc.GetDocpage(project_no, docinfo_id);
196 200

  
197 201
                        PdfFilePathRoot = PdfFilePathRoot + @"\" + FinalPDF.PROJECT_NO + "_Tile" + @"\"
198 202
                                         + (System.Convert.ToInt64(FinalPDF.DOCUMENT_ID) / 100).ToString()
199 203
                                         + @"\" + FinalPDF.DOCUMENT_ID + @"\";
200 204

  
201
                        MarkupInfoItem = DocInfoItem.MARKUP_INFO.Where(data => data.CONSOLIDATE == 1 && data.AVOID_CONSOLIDATE == 0 && data.PART_CONSOLIDATE == 0).FirstOrDefault();
205
                        MarkupInfoItem = dc.GetMarkupInfo(project_no, docinfo_id);                            
202 206

  
203 207
                        if (MarkupInfoItem == null)
204 208
                        {
......
206 210
                        }
207 211
                        else
208 212
                        {
209
                            if (MarkupInfoItem.MARKUP_INFO_VERSION.Count > 0)
213
                            if (MarkupInfoItem.MARKUP_INFO_VERSION.Count() > 0)
210 214
                            {
211
                                MarkupDataSet = MarkupInfoItem.MARKUP_INFO_VERSION.OrderBy(d => d.CREATE_DATE).LastOrDefault().MARKUP_DATA.ToList().OrderBy(d=>d.PAGENUMBER).ToList();
215
                                MarkupDataSet = dc.GetMarkupData(project_no, docinfo_id);
212 216
                            }
213 217
                            else
214 218
                            {
215 219
                                throw new Exception("MARKUP_INFO_VERSION 이 존재 하지 않습니다");
216 220
                            }
217 221
                        }
218

  
219
                        using (CIEntities _ci_Internal = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(FinalPDF.PROJECT_NO).ToString()))
222
                        documentItem = dc.GetDocumentItem(project_no, DocInfoItem.DOCUMENT_ID);
223
                        if (documentItem == null)
220 224
                        {
221
                            documentItem = _ci_Internal.DOCUMENT_ITEM.Where(data => data.DOCUMENT_ID == DocInfoItem.DOCUMENT_ID).FirstOrDefault();
222
                            if (documentItem == null)
223
                            {
224
                                throw new Exception("DocInfo와 DocumentItem의 documentItemID가 같지 않습니다. 데이터를 확인해주세요");
225
                            }
226

  
227
                            var _files = new DirectoryInfo(PdfFilePathRoot).GetFiles("*.pdf"); //해당 폴더에 파일을 
225
                            throw new Exception("DocInfo와 DocumentItem의 documentItemID가 같지 않습니다. 데이터를 확인해주세요");
226
                        }
227
                        var _files = new DirectoryInfo(PdfFilePathRoot).GetFiles("*.pdf"); //해당 폴더에 파일을 
228 228

  
229
                            #region 파일 체크
230
                            if (_files.Count() == 1)
231
                            {
232
                                if (_files.First().Name.ToLower() == GetFileName(HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE).ToLower()))
233
                                {
234
                                    OriginFileName = _files.First().Name;
235
                                    PdfFilePath = _files.First().CopyTo(TestFile, true);
236
                                }
237
                                else
238
                                {
239
                                    throw new Exception("현재 폴더 내 파일명이 데이터베이스와 상이합니다.filename:" + _files.First().Name.ToLower() + ",url:" + HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE).ToLower());
240
                                }
241
                            }
242
                            else if (_files.Count() > 1)
229
                        #region 파일 체크
230
                        if (_files.Count() == 1)
231
                        {
232
                            if (_files.First().Name.ToLower() == GetFileName(HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE).ToLower()))
243 233
                            {
244
                                var originalFile = _files.Where(data => data.Name == GetFileName(HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE))).FirstOrDefault();
245

  
246
                                if (originalFile == null)
247
                                {
248
                                    throw new Exception("해당 폴더에 복수로 PDF들 존재하고 document_Item의 문서는 존재하지 않습니다");
249
                                }
250
                                else
251
                                {
252
                                    OriginFileName = originalFile.Name;
253
                                    PdfFilePath = originalFile.CopyTo(TestFile, true);
254
                                }
234
                                OriginFileName = _files.First().Name;
235
                                PdfFilePath = _files.First().CopyTo(TestFile, true);
255 236
                            }
256 237
                            else
257 238
                            {
258
                                throw new Exception("PDF를 찾지 못하였습니다");
239
                                throw new Exception("현재 폴더 내 파일명이 데이터베이스와 상이합니다.filename:" + _files.First().Name.ToLower() + ",url:" + HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE).ToLower());
259 240
                            }
260
                            #endregion
241
                        }
242
                        else if (_files.Count() > 1)
243
                        {
244
                            var originalFile = _files.Where(data => data.Name == GetFileName(HttpUtility.UrlDecode(documentItem.ORIGINAL_FILE))).FirstOrDefault();
261 245

  
262
                            #region 예외처리
263
                            if (PdfFilePath == null)
246
                            if (originalFile == null)
264 247
                            {
265
                                throw new Exception("작업에 필요한 PDF가 정상적으로 복사되지 않았거나 DB정보가 상이합니다");
248
                                throw new Exception("해당 폴더에 복수로 PDF들 존재하고 document_Item의 문서는 존재하지 않습니다");
266 249
                            }
267
                            if (!PdfFilePath.Exists)
250
                            else
268 251
                            {
269
                                throw new Exception("PDF원본이 존재하지 않습니다");
252
                                OriginFileName = originalFile.Name;
253
                                PdfFilePath = originalFile.CopyTo(TestFile, true);
270 254
                            }
271
                            #endregion
272 255
                        }
256
                        else
257
                        {
258
                            throw new Exception("PDF를 찾지 못하였습니다");
259
                        }
260
                        #endregion
261

  
262
                        #region 예외처리
263
                        if (PdfFilePath == null)
264
                        {
265
                            throw new Exception("작업에 필요한 PDF가 정상적으로 복사되지 않았거나 DB정보가 상이합니다");
266
                        }
267
                        if (!PdfFilePath.Exists)
268
                        {
269
                            throw new Exception("PDF원본이 존재하지 않습니다");
270
                        }
271
                        #endregion
273 272
                    }
274 273
                    else
275 274
                    {
276 275
                        throw new Exception("일치하는 DocInfo가 없습니다");
277 276
                    }
278 277
                }
278
                    
279
                
279 280
            }
280 281
            catch (Exception ex)
281 282
            {
......
408 409
            File.WriteAllBytes(dest, array);
409 410
        }
410 411
        
411
        public bool SetStampInPDF(FINAL_PDF finaldata, string testFile, MARKUP_INFO markupInfo)
412
        public bool SetStampInPDF(FINAL_PDF finaldata, string testFile, CommonLib.MARKUS_API.MARKUP_INFO markupInfo)
412 413
        {
413 414
            string pdfFilePath = null;
414
            List<MEMBER> memberlist = null;
415
            
415 416
            FileInfo tempFileInfo = new FileInfo(testFile);
416 417

  
417 418
            if (!Directory.Exists(_FinalPDFStorgeLocal))
......
419 420
                Directory.CreateDirectory(_FinalPDFStorgeLocal);
420 421
            }
421 422
            pdfFilePath = _FinalPDFStorgeLocal + @"\" + tempFileInfo.Name;
422
            using (CIEntities cIEntities = new CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(finaldata.PROJECT_NO).ToString()))
423
            {
424
                memberlist = cIEntities.MEMBER.ToList();
425
            }
423
            
426 424
            using (KCOMEntities _entity = new KCOMEntities(ConnectStringBuilder.KCOMConnectionString().ToString()))
427 425
            {
428 426
                FINAL_PDF pdfLink = _entity.FINAL_PDF.Where(data => data.ID == finaldata.ID).FirstOrDefault();
......
440 438
                    var dic = new Dictionary<string, object>();
441 439
                    foreach (var data in MarkupDataSet)
442 440
                    {
443

  
441
                        
444 442
                        string userid = data.MARKUP_INFO_VERSION.MARKUP_INFO.USER_ID;
445

  
446
                        var member = memberlist.Where(u => u.ID == userid).FirstOrDefault();
447
                        string username = member.NAME;
448
                        string userdept = member.DEPARTMENT;
443
                        string username = string.Empty;
444
                        string userdept = string.Empty;
445
                        using (DataController dataController = new DataController())
446
                        {
447
                            var member = dataController.GetMemberInfo(markupInfo.DOCINFO.PROJECT_NO, userid);
448
                            username = member.NAME;
449
                            userdept = member.DEPARTMENT;
450
                        }                        
451
                        
449 452
                        bookmark = new Dictionary<string, object>();
450 453
                        bookmark.Add("Title", string.Format("User:{0}[{1}] Commented Page : {2}", username, userdept, data.PAGENUMBER));
451 454
                        bookmark.Add("Page", data.PAGENUMBER + " Fit");
KCOM_API/ServiceDeepView.svc.cs
2541 2541

  
2542 2542
        }
2543 2543
        #endregion
2544

  
2545
        #region Final Service
2546
        [OperationContract]
2547
        [ServiceKnownType(typeof(DOCINFO))]                
2548
        public DOCINFO FinalPDF_GetDocinfo(string project_no, string docinfo_id)
2549
        {
2550
            DOCINFO docinfo = null;
2551

  
2552
            try
2553
            {
2554
                using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2555
                {
2556
                    var doc = _entity.DOCINFO.Where(x => x.ID == docinfo_id).FirstOrDefault();
2557
                    if(doc != null)
2558
                    {
2559
                        docinfo = new DOCINFO()
2560
                        {
2561
                            ID = doc.ID,
2562
                            DOCUMENT_ID = doc.DOCUMENT_ID,
2563
                            PAGE_COUNT = doc.PAGE_COUNT,
2564
                            ORIGINAL_FILE = doc.ORIGINAL_FILE,
2565
                            PROJECT_NO = doc.PROJECT_NO
2566
                        };
2567
                    }                    
2568
                }
2569
            }
2570
            catch (Exception)
2571
            {
2572
                throw;
2573
            }
2574
            return docinfo;
2575
        }
2576
        [OperationContract]
2577
        [ServiceKnownType(typeof(DOCUMENT_ITEM))]
2578
        public DOCUMENT_ITEM FinalPDF_GetDocumentItem(string project_no, string document_id)
2579
        {
2580
            DOCUMENT_ITEM item = null;
2581

  
2582
            try
2583
            {
2584
                using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2585
                {
2586
                    var doc = _entity.DOCUMENT_ITEM.Where(x => x.DOCUMENT_ID == document_id).FirstOrDefault();
2587
                    if(doc != null)
2588
                    {
2589
                        item = new DOCUMENT_ITEM()
2590
                        {
2591
                            ID = doc.ID,
2592
                            ORIGINAL_FILE = doc.ORIGINAL_FILE,
2593
                            PROJECT_NO = doc.PROJECT_NO,
2594
                            DOCUMENT_ID = doc.DOCUMENT_ID,
2595
                            DOCUMENT_NO = doc.DOCUMENT_NO,
2596
                            DOCUMENT_NAME = doc.DOCUMENT_NAME,
2597
                            ENSEMBLEINFO_URL = doc.ENSEMBLEINFO_URL,
2598
                            GROUP_NO = doc.GROUP_NO,
2599
                            RESULT = doc.RESULT,
2600
                            REVISION = doc.REVISION,
2601
                            RESULT_FILE = doc.RESULT_FILE
2602
                        };
2603
                    }
2604
                    
2605
                }
2606
            }
2607
            catch (Exception)
2608
            {
2609
                throw;
2610
            }
2611
            return item;
2612
        }
2613
        [OperationContract]
2614
        [ServiceKnownType(typeof(MARKUP_DATA))]
2615
        public List<MARKUP_DATA> FinalPDF_GetMarkupdata(string project_no, string docinfo_id)
2616
        {
2617
            List<MARKUP_DATA> results = new List<MARKUP_DATA>();
2618

  
2619
            try
2620
            {
2621
                using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2622
                {
2623
                    var datas = _entity.MARKUP_DATA.Where(x => x.MARKUP_INFO_VERSION.MARKUP_INFO.DOCINFO_ID == docinfo_id
2624
                    && x.MARKUP_INFO_VERSION.MARKUP_INFO.CONSOLIDATE == 1
2625
                    && x.MARKUP_INFO_VERSION.MARKUP_INFO.AVOID_CONSOLIDATE == 0
2626
                    && x.MARKUP_INFO_VERSION.MARKUP_INFO.PART_CONSOLIDATE == 0).ToList();
2627
                    foreach (var data in datas)
2628
                    {
2629
                        MARKUP_DATA d = new MARKUP_DATA()
2630
                        {
2631
                            ID = data.ID,
2632
                            GROUP_ID = data.GROUP_ID,
2633
                            SYMBOL_ID = data.SYMBOL_ID,
2634
                            DATA = data.DATA,
2635
                            DATA_TYPE = data.DATA_TYPE
2636
                        };
2637
                        results.Add(d);
2638
                    }
2639
                }
2640
            }
2641
            catch (Exception)
2642
            {
2643
                throw;
2644
            }
2645
            return results;
2646
        }
2647
        [OperationContract]
2648
        [ServiceKnownType(typeof(MARKUP_INFO))]
2649
        public MARKUP_INFO FinalPDF_GetMarkupinfo(string project_no, string docinfo_id)
2650
        {
2651
            MARKUP_INFO markupInfo = null;
2652

  
2653
            try
2654
            {
2655
                using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2656
                {
2657
                    var tmp = _entity.MARKUP_INFO.Where(x => x.DOCINFO_ID == docinfo_id && x.CONSOLIDATE == 1 && x.AVOID_CONSOLIDATE == 0 && x.PART_CONSOLIDATE == 0).FirstOrDefault();
2658
                    if (tmp != null)
2659
                    {
2660
                        markupInfo = new MARKUP_INFO()
2661
                        {
2662
                            ID = tmp.ID,
2663
                            DOCINFO_ID = tmp.DOCINFO_ID,
2664
                            USER_ID = tmp.USER_ID
2665
                        };
2666
                    }                    
2667
                }
2668
            }
2669
            catch (Exception)
2670
            {
2671
                throw;
2672
            }
2673
            return markupInfo;
2674
        }
2675
        [OperationContract]
2676
        [ServiceKnownType(typeof(DOCPAGE))]
2677
        public List<DOCPAGE> FinalPDF_GetDocpage(string project_no, string docinfo_id)
2678
        {
2679
            List<DOCPAGE> results = new List<DOCPAGE>();
2680

  
2681
            try
2682
            {
2683
                using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2684
                {
2685
                    var pages = _entity.DOCPAGE.Where(x => x.DOCINFO_ID == docinfo_id).OrderBy(x => x.PAGE_NUMBER).ToList();
2686
                    foreach(var page in pages)
2687
                    {
2688
                        DOCPAGE p = new DOCPAGE()
2689
                        {
2690
                            PAGE_ANGLE = page.PAGE_ANGLE,
2691
                            PAGE_NUMBER = page.PAGE_NUMBER,
2692
                            PAGE_HEIGHT = page.PAGE_HEIGHT,
2693
                            PAGE_WIDTH = page.PAGE_WIDTH,
2694
                            DOCINFO_ID = page.DOCINFO_ID                            
2695
                        };
2696
                        results.Add(p);
2697
                    }                    
2698
                }
2699
            }
2700
            catch (Exception)
2701
            {
2702
                throw;
2703
            }
2704
            return results;
2705
        }
2706
        #endregion
2544 2707
    }
2545 2708
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)