コード例 #1
0
ファイル: CustomerSign.xaml.cs プロジェクト: maverick126/MRS
        private void Docu_RowLoaded(object sender, RowLoadedEventArgs e)
        {
            HyperlinkButton hl;
            GridViewRow     row = e.Row as GridViewRow;

            if (row != null)
            {
                DocuSignDocStatusInfo ed = row.DataContext as DocuSignDocStatusInfo;
                if (row != null && ed != null)
                {
                    foreach (GridViewCell Cell in row.Cells)
                    {
                        if (Cell.FindChildByType <HyperlinkButton>() != null && Cell.FindChildByType <HyperlinkButton>().Name == "btnHistory")
                        {
                            hl = Cell.FindChildByType <HyperlinkButton>();
                            if (ed.envelopeId != null && ed.envelopeId != "" && ed.envelopeId != Guid.Empty.ToString())
                            {
                                hl.Visibility = Visibility.Visible;
                            }
                            else
                            {
                                hl.Visibility = Visibility.Collapsed;
                            }
                        }
                    }
                }
            }
        }
コード例 #2
0
ファイル: CustomerSign.xaml.cs プロジェクト: maverick126/MRS
        private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            DocuSignDocStatusInfo docinfo = ((GridViewCell)((HyperlinkButton)e.OriginalSource).Parent).ParentRow.DataContext as DocuSignDocStatusInfo;

            RadWindow win = new RadWindow();

            win.ResizeMode = ResizeMode.NoResize;
            DocuSignHistory previewDlg2 = new DocuSignHistory(docinfo.envelopeId, _estimateRevisionId.ToString(), docinfo.versiontype, docinfo.printtype);

            win.Header = "DocuSign History";
            win.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen;
            win.Content = previewDlg2;
            win.ShowDialog();
        }
コード例 #3
0
ファイル: CustomerSign.xaml.cs プロジェクト: maverick126/MRS
        private void chkSelect_Checked(object sender, RoutedEventArgs e)
        {
            DocuSignDocStatusInfo docinfo = ((GridViewCell)((CheckBox)e.OriginalSource).Parent).ParentRow.DataContext as DocuSignDocStatusInfo;

            foreach (var item2 in ((DocuSignViewModel)LayoutRoot.DataContext).DocuSignStatus)
            {
                if (item2.printtype != docinfo.printtype || item2.versiontype != docinfo.versiontype)
                {
                    item2.Selected = false;
                }
            }
            string doctype = "";

            if (docinfo.documentnumber != "0")
            {
                doctype = docinfo.documenttype + docinfo.documentnumber;
            }
            else
            {
                doctype = docinfo.documenttype;
            }
            ((DocuSignViewModel)LayoutRoot.DataContext).GetEmail(doctype);
        }
コード例 #4
0
        private void ContructDocumentStatus()
        {
            IsBusy = true;
            if ((!_documenttype.ToUpper().Contains("VARIATION") && !(App.Current as App).SelectedEstimateAllowToViewStudioMTab) || _documenttype.ToUpper().Contains("CONTRACT"))
            {
                DocuSignDocStatusInfo doc1 = new DocuSignDocStatusInfo();
                doc1.deleted = "0";
                //doc1.versiontype = "CUSTOMER";
                doc1.versiontype           = "CUSTOMER";
                doc1.estimateid            = _estimateid;
                doc1.printtype             = "FULLDETAILS";
                doc1.revisionnumber        = _revisionnumber;
                doc1.EnableSendViaDocuSign = true;
                doc1.EnableSignInPerson    = true;
                doc1.EnableVoid            = false;
                doc1.Selected       = false;
                doc1.documentnumber = "0";
                doc1.documenttype   = _documenttype;

                DocuSignStatus.Add(doc1);

                DocuSignDocStatusInfo doc2 = new DocuSignDocStatusInfo();
                doc2.deleted               = "0";
                doc2.versiontype           = "CUSTOMER";
                doc2.estimateid            = _estimateid;
                doc2.printtype             = "LUMPSUM";
                doc2.revisionnumber        = _revisionnumber;
                doc2.EnableSendViaDocuSign = true;
                doc2.EnableSignInPerson    = true;
                doc2.EnableVoid            = false;
                doc2.Selected              = false;
                doc2.documentnumber        = "0";
                doc2.documenttype          = _documenttype;

                DocuSignStatus.Add(doc2);

                DocuSignDocStatusInfo doc3 = new DocuSignDocStatusInfo();
                doc3.deleted               = "0";
                doc3.versiontype           = "CUSTOMER";
                doc3.estimateid            = _estimateid;
                doc3.printtype             = "FULLSUMMARY";
                doc3.revisionnumber        = _revisionnumber;
                doc3.EnableSendViaDocuSign = true;
                doc3.EnableSignInPerson    = true;
                doc3.EnableVoid            = false;
                doc3.Selected              = false;
                doc3.documentnumber        = "0";
                doc3.documenttype          = _documenttype;

                DocuSignStatus.Add(doc3);
            }
            if ((App.Current as App).SelectedEstimateAllowToViewStudioMDocuSign)
            {
                DocuSignDocStatusInfo doc4 = new DocuSignDocStatusInfo();
                doc4.deleted               = "0";
                doc4.versiontype           = "STUDIOM";
                doc4.estimateid            = _estimateid;
                doc4.printtype             = "";
                doc4.revisionnumber        = _revisionnumber;
                doc4.EnableSendViaDocuSign = true;
                doc4.EnableSignInPerson    = true;
                doc4.EnableVoid            = false;
                doc4.Selected              = false;
                doc4.documentnumber        = "0";
                doc4.documenttype          = _documenttype;

                DocuSignStatus.Add(doc4);
            }

            if (_documenttype.ToUpper().Contains("VARIATION"))
            {
                DocuSignDocStatusInfo doc5 = new DocuSignDocStatusInfo();
                doc5.deleted               = "0";
                doc5.versiontype           = "CHANGEONLY";
                doc5.estimateid            = _estimateid;
                doc5.printtype             = "";
                doc5.revisionnumber        = _revisionnumber;
                doc5.EnableSendViaDocuSign = true;
                doc5.EnableSignInPerson    = true;
                doc5.EnableVoid            = false;
                doc5.Selected              = false;
                doc5.documentnumber        = "0";
                doc5.documenttype          = _documenttype;

                DocuSignStatus.Add(doc5);
            }
        }