프로젝트

일반

사용자정보

개정판 3b62305d

ID3b62305d4eee681cc7263dd7e9807b4a34e127c3
상위 81e3c9f6
하위 1f3f1a40, 2e155bb5

이지연이(가) 5년 이상 전에 추가함

issue #923: Merged PDF 버튼을 클릭했을때 해당 문서의 Merged PDF 서비스가 수행중이면 "Merged PDF가 수행중입니다" 메세지를 띄운다

Change-Id: If0dd0c53302e90fb68b67181b8f9e433e1d92c81

차이점 보기:

KCOM/Connected Services/ServiceDeepView/Reference.cs
1038 1038
        
1039 1039
        bool EndFinalPDF_SetFinalPDFStatus(System.IAsyncResult result);
1040 1040
        
1041
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatus", ReplyAction="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatusResponse")]
1042
        bool FinalPDF_GetFinalPDFStatus(string DocInfoID, string MarkupInfoID, string CreateUserID);
1043
        
1044
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatus", ReplyAction="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatusResponse")]
1045
        System.IAsyncResult BeginFinalPDF_GetFinalPDFStatus(string DocInfoID, string MarkupInfoID, string CreateUserID, System.AsyncCallback callback, object asyncState);
1046
        
1047
        bool EndFinalPDF_GetFinalPDFStatus(System.IAsyncResult result);
1048
        
1041 1049
        [System.ServiceModel.OperationContractAttribute(Action="urn:ServiceDeepView/FinalPDF_SetCurrentPage", ReplyAction="urn:ServiceDeepView/FinalPDF_SetCurrentPageResponse")]
1042 1050
        bool FinalPDF_SetCurrentPage(string final_id, int currentpage);
1043 1051
        
......
2339 2347
    
2340 2348
    [System.Diagnostics.DebuggerStepThroughAttribute()]
2341 2349
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
2350
    public partial class FinalPDF_GetFinalPDFStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
2351
        
2352
        private object[] results;
2353
        
2354
        public FinalPDF_GetFinalPDFStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
2355
                base(exception, cancelled, userState) {
2356
            this.results = results;
2357
        }
2358
        
2359
        public bool Result {
2360
            get {
2361
                base.RaiseExceptionIfNecessary();
2362
                return ((bool)(this.results[0]));
2363
            }
2364
        }
2365
    }
2366
    
2367
    [System.Diagnostics.DebuggerStepThroughAttribute()]
2368
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
2342 2369
    public partial class FinalPDF_SetCurrentPageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
2343 2370
        
2344 2371
        private object[] results;
......
2832 2859
        
2833 2860
        private System.Threading.SendOrPostCallback onFinalPDF_SetFinalPDFStatusCompletedDelegate;
2834 2861
        
2862
        private BeginOperationDelegate onBeginFinalPDF_GetFinalPDFStatusDelegate;
2863
        
2864
        private EndOperationDelegate onEndFinalPDF_GetFinalPDFStatusDelegate;
2865
        
2866
        private System.Threading.SendOrPostCallback onFinalPDF_GetFinalPDFStatusCompletedDelegate;
2867
        
2835 2868
        private BeginOperationDelegate onBeginFinalPDF_SetCurrentPageDelegate;
2836 2869
        
2837 2870
        private EndOperationDelegate onEndFinalPDF_SetCurrentPageDelegate;
......
3013 3046
        
3014 3047
        public event System.EventHandler<FinalPDF_SetFinalPDFStatusCompletedEventArgs> FinalPDF_SetFinalPDFStatusCompleted;
3015 3048
        
3049
        public event System.EventHandler<FinalPDF_GetFinalPDFStatusCompletedEventArgs> FinalPDF_GetFinalPDFStatusCompleted;
3050
        
3016 3051
        public event System.EventHandler<FinalPDF_SetCurrentPageCompletedEventArgs> FinalPDF_SetCurrentPageCompleted;
3017 3052
        
3018 3053
        public event System.EventHandler<FinalPDF_SetErrorCompletedEventArgs> FinalPDF_SetErrorCompleted;
......
6509 6544
                        status}, this.onEndFinalPDF_SetFinalPDFStatusDelegate, this.onFinalPDF_SetFinalPDFStatusCompletedDelegate, userState);
6510 6545
        }
6511 6546
        
6547
        public bool FinalPDF_GetFinalPDFStatus(string DocInfoID, string MarkupInfoID, string CreateUserID) {
6548
            return base.Channel.FinalPDF_GetFinalPDFStatus(DocInfoID, MarkupInfoID, CreateUserID);
6549
        }
6550
        
6551
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
6552
        public System.IAsyncResult BeginFinalPDF_GetFinalPDFStatus(string DocInfoID, string MarkupInfoID, string CreateUserID, System.AsyncCallback callback, object asyncState) {
6553
            return base.Channel.BeginFinalPDF_GetFinalPDFStatus(DocInfoID, MarkupInfoID, CreateUserID, callback, asyncState);
6554
        }
6555
        
6556
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
6557
        public bool EndFinalPDF_GetFinalPDFStatus(System.IAsyncResult result) {
6558
            return base.Channel.EndFinalPDF_GetFinalPDFStatus(result);
6559
        }
6560
        
6561
        private System.IAsyncResult OnBeginFinalPDF_GetFinalPDFStatus(object[] inValues, System.AsyncCallback callback, object asyncState) {
6562
            string DocInfoID = ((string)(inValues[0]));
6563
            string MarkupInfoID = ((string)(inValues[1]));
6564
            string CreateUserID = ((string)(inValues[2]));
6565
            return this.BeginFinalPDF_GetFinalPDFStatus(DocInfoID, MarkupInfoID, CreateUserID, callback, asyncState);
6566
        }
6567
        
6568
        private object[] OnEndFinalPDF_GetFinalPDFStatus(System.IAsyncResult result) {
6569
            bool retVal = this.EndFinalPDF_GetFinalPDFStatus(result);
6570
            return new object[] {
6571
                    retVal};
6572
        }
6573
        
6574
        private void OnFinalPDF_GetFinalPDFStatusCompleted(object state) {
6575
            if ((this.FinalPDF_GetFinalPDFStatusCompleted != null)) {
6576
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
6577
                this.FinalPDF_GetFinalPDFStatusCompleted(this, new FinalPDF_GetFinalPDFStatusCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
6578
            }
6579
        }
6580
        
6581
        public void FinalPDF_GetFinalPDFStatusAsync(string DocInfoID, string MarkupInfoID, string CreateUserID) {
6582
            this.FinalPDF_GetFinalPDFStatusAsync(DocInfoID, MarkupInfoID, CreateUserID, null);
6583
        }
6584
        
6585
        public void FinalPDF_GetFinalPDFStatusAsync(string DocInfoID, string MarkupInfoID, string CreateUserID, object userState) {
6586
            if ((this.onBeginFinalPDF_GetFinalPDFStatusDelegate == null)) {
6587
                this.onBeginFinalPDF_GetFinalPDFStatusDelegate = new BeginOperationDelegate(this.OnBeginFinalPDF_GetFinalPDFStatus);
6588
            }
6589
            if ((this.onEndFinalPDF_GetFinalPDFStatusDelegate == null)) {
6590
                this.onEndFinalPDF_GetFinalPDFStatusDelegate = new EndOperationDelegate(this.OnEndFinalPDF_GetFinalPDFStatus);
6591
            }
6592
            if ((this.onFinalPDF_GetFinalPDFStatusCompletedDelegate == null)) {
6593
                this.onFinalPDF_GetFinalPDFStatusCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnFinalPDF_GetFinalPDFStatusCompleted);
6594
            }
6595
            base.InvokeAsync(this.onBeginFinalPDF_GetFinalPDFStatusDelegate, new object[] {
6596
                        DocInfoID,
6597
                        MarkupInfoID,
6598
                        CreateUserID}, this.onEndFinalPDF_GetFinalPDFStatusDelegate, this.onFinalPDF_GetFinalPDFStatusCompletedDelegate, userState);
6599
        }
6600
        
6512 6601
        public bool FinalPDF_SetCurrentPage(string final_id, int currentpage) {
6513 6602
            return base.Channel.FinalPDF_SetCurrentPage(final_id, currentpage);
6514 6603
        }
KCOM/Connected Services/ServiceDeepView/ServiceDeepView.wsdl
409 409
  <wsdl:message name="ServiceDeepView_FinalPDF_SetFinalPDFStatus_OutputMessage">
410 410
    <wsdl:part name="parameters" element="FinalPDF_SetFinalPDFStatusResponse" />
411 411
  </wsdl:message>
412
  <wsdl:message name="ServiceDeepView_FinalPDF_GetFinalPDFStatus_InputMessage">
413
    <wsdl:part name="parameters" element="FinalPDF_GetFinalPDFStatus" />
414
  </wsdl:message>
415
  <wsdl:message name="ServiceDeepView_FinalPDF_GetFinalPDFStatus_OutputMessage">
416
    <wsdl:part name="parameters" element="FinalPDF_GetFinalPDFStatusResponse" />
417
  </wsdl:message>
412 418
  <wsdl:message name="ServiceDeepView_FinalPDF_SetCurrentPage_InputMessage">
413 419
    <wsdl:part name="parameters" element="FinalPDF_SetCurrentPage" />
414 420
  </wsdl:message>
......
704 710
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_SetFinalPDFStatus" message="ServiceDeepView_FinalPDF_SetFinalPDFStatus_InputMessage" />
705 711
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_SetFinalPDFStatusResponse" message="ServiceDeepView_FinalPDF_SetFinalPDFStatus_OutputMessage" />
706 712
    </wsdl:operation>
713
    <wsdl:operation name="FinalPDF_GetFinalPDFStatus">
714
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatus" message="ServiceDeepView_FinalPDF_GetFinalPDFStatus_InputMessage" />
715
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatusResponse" message="ServiceDeepView_FinalPDF_GetFinalPDFStatus_OutputMessage" />
716
    </wsdl:operation>
707 717
    <wsdl:operation name="FinalPDF_SetCurrentPage">
708 718
      <wsdl:input wsaw:Action="urn:ServiceDeepView/FinalPDF_SetCurrentPage" message="ServiceDeepView_FinalPDF_SetCurrentPage_InputMessage" />
709 719
      <wsdl:output wsaw:Action="urn:ServiceDeepView/FinalPDF_SetCurrentPageResponse" message="ServiceDeepView_FinalPDF_SetCurrentPage_OutputMessage" />
KCOM/Connected Services/ServiceDeepView/ServiceDeepView1.wsdl
598 598
        <soap:body use="literal" />
599 599
      </wsdl:output>
600 600
    </wsdl:operation>
601
    <wsdl:operation name="FinalPDF_GetFinalPDFStatus">
602
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_GetFinalPDFStatus" style="document" />
603
      <wsdl:input>
604
        <soap:body use="literal" />
605
      </wsdl:input>
606
      <wsdl:output>
607
        <soap:body use="literal" />
608
      </wsdl:output>
609
    </wsdl:operation>
601 610
    <wsdl:operation name="FinalPDF_SetCurrentPage">
602 611
      <soap:operation soapAction="urn:ServiceDeepView/FinalPDF_SetCurrentPage" style="document" />
603 612
      <wsdl:input>
KCOM/Connected Services/ServiceDeepView/ServiceDeepView6.xsd
1020 1020
      </xs:sequence>
1021 1021
    </xs:complexType>
1022 1022
  </xs:element>
1023
  <xs:element name="FinalPDF_GetFinalPDFStatus">
1024
    <xs:complexType>
1025
      <xs:sequence>
1026
        <xs:element minOccurs="0" name="DocInfoID" nillable="true" type="xs:string" />
1027
        <xs:element minOccurs="0" name="MarkupInfoID" nillable="true" type="xs:string" />
1028
        <xs:element minOccurs="0" name="CreateUserID" nillable="true" type="xs:string" />
1029
      </xs:sequence>
1030
    </xs:complexType>
1031
  </xs:element>
1032
  <xs:element name="FinalPDF_GetFinalPDFStatusResponse">
1033
    <xs:complexType>
1034
      <xs:sequence>
1035
        <xs:element minOccurs="0" name="FinalPDF_GetFinalPDFStatusResult" type="xs:boolean" />
1036
      </xs:sequence>
1037
    </xs:complexType>
1038
  </xs:element>
1023 1039
  <xs:element name="FinalPDF_SetCurrentPage">
1024 1040
    <xs:complexType>
1025 1041
      <xs:sequence>
KCOM/Services/BaseServices.cs
152 152
            }
153 153
            else
154 154
            {
155
                ViewerDataModel.Instance.SystemMain.dzMainMenu.btnFinalPDF.IsEnabled = true;
156 155
                DialogMessage_Alert(successmsg, "안내");
157 156
            }
158 157
        }
KCOM/Views/MainMenu.xaml.cs
4024 4024

  
4025 4025
        private void FinalPDFEvent(object sender, RoutedEventArgs e)
4026 4026
        {
4027
            if(btnFinalPDF.IsEnabled == true)
4027
            var item = gridViewMarkup.Items.Cast<MarkupInfoItem>().Where(d => d.Consolidate == 1 && d.AvoidConsolidate == 0).FirstOrDefault();
4028
            if (BaseClient.FinalPDF_GetFinalPDFStatus(_DocInfo.ID, item.MarkupInfoID, _ViewInfo.UserID))
4028 4029
            {
4029
                var item = gridViewMarkup.Items.Cast<MarkupInfoItem>().Where(d => d.Consolidate == 1 && d.AvoidConsolidate == 0).FirstOrDefault();
4030 4030
                if (item != null)
4031 4031
                {
4032 4032
                    Logger.sendReqLog("SetFinalPDFAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID + "," + item.MarkupInfoID + "," + _ViewInfo.UserID, 1);
4033

  
4034 4033
                    BaseClient.SetFinalPDFAsync(_ViewInfo.ProjectNO, _DocInfo.ID, item.MarkupInfoID, _ViewInfo.UserID);
4035
                    btnFinalPDF.IsEnabled = false;
4036 4034
                }
4037 4035
                else
4038 4036
                {
KCOM_API/ServiceDeepView.svc.cs
2802 2802
        }
2803 2803

  
2804 2804
        [OperationContract]
2805
        public bool FinalPDF_GetFinalPDFStatus(string DocInfoID, string MarkupInfoID, string CreateUserID)
2806
        {
2807
            bool result = false;
2808

  
2809
            try
2810
            {
2811
                using (KCOMEntities _entity = new KCOMEntities(ConnectStringBuilder.KCOMConnectionString().ToString()))
2812
                {
2813
                    var finalpdf = _entity.FINAL_PDF.Where(x => x.DOCINFO_ID == DocInfoID && x.MARKUPINFO_ID == MarkupInfoID && x.CREATE_USER_ID == CreateUserID).FirstOrDefault();
2814
                    if (finalpdf != null)
2815
                    {
2816
                        if(finalpdf.STATUS == (int)FinalStatus.Success)
2817
                        {
2818
                            result = true;
2819
                        }
2820
                    }
2821
                }
2822
            }
2823
            catch (Exception)
2824
            {
2825
                throw;
2826
            }
2827
            return result;
2828
        }
2829

  
2830
        [OperationContract]
2805 2831
        public bool FinalPDF_SetCurrentPage(string final_id, int currentpage)
2806 2832
        {
2807 2833
            bool result = false;

내보내기 Unified diff

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