Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session[SessionConsts.CUc1GostContent]  = null;
                Session[SessionConsts.CUc1RsaContent]   = null;
                Session[SessionConsts.COko1GostContent] = null;
                Session[SessionConsts.COko1RsaContent]  = null;

                var tfService    = ObjectFactory.GetInstance <ITfomsService>();
                var sertificates = tfService.GetGlobalSertificates();
                uUC1GOST.LoadedEarlierText  = UtilsHelper.GetLoadedSertificateText(TypeSertificate.UC1GOST, sertificates);
                uUC1RSA.LoadedEarlierText   = UtilsHelper.GetLoadedSertificateText(TypeSertificate.UC1RSA, sertificates);
                uOKO1GOST.LoadedEarlierText = UtilsHelper.GetLoadedSertificateText(TypeSertificate.OKO1GOST, sertificates);
                uOKO1RSA.LoadedEarlierText  = UtilsHelper.GetLoadedSertificateText(TypeSertificate.OKO1RSA, sertificates);
            }
        }
 /// <summary>
 /// The assign control values from workstation.
 /// </summary>
 /// <param name="row">
 /// The row.
 /// </param>
 public void AssignControlValuesFromWorkstation(WorkstationGridRow row)
 {
     tbName.Text         = row.Name;
     readerName.Value    = row.UecReaderName;
     readerSmcName.Value = row.SmardCardReaderName;
     //comboReaderName.Text = row.UecReaderName;
     if (row.UecCerticateType == null || row.UecCerticateType == (int)CryptographyType.GOST)
     {
         rblCrypto.SelectedValue = "GOST";
     }
     else
     {
         rblCrypto.SelectedValue = "RSA";
     }
     uTerminalGOST.LoadedEarlierText        = UtilsHelper.GetLoadedSertificateText(TypeSertificate.TerminalGOST, row.SertificateUecs);
     uTerminalRSA.LoadedEarlierText         = UtilsHelper.GetLoadedSertificateText(TypeSertificate.TerminalRSA, row.SertificateUecs);
     uPrivateTerminalGOST.LoadedEarlierText = UtilsHelper.GetLoadedSertificateText(TypeSertificate.PrivateTerminalGOST, row.SertificateUecs);
 }