Ejemplo n.º 1
0
        private string GetEncryptDencryptPortalUserName()
        {
            string supplierCode = string.Empty;

            try
            {
                com.Sconit.Entity.ACC.User user = SecurityContextHolder.Get();
                Supplier supplier = base.genericMgr.FindById <Supplier>(user.Name);
                EncryptDencryptService.EncryptDencryptService encryptDencryptService = new EncryptDencryptService.EncryptDencryptService();
                supplierCode = encryptDencryptService.EncryptDencrypt(supplier.ShortCode, true, "sih_dms");
            }
            catch (Exception ex)
            {
            }
            return(Server.UrlEncode(supplierCode));
        }
        private string GetEncryptDencryptPortalUserName()
        {
            string supplierCode = string.Empty;
            try
            {
                com.Sconit.Entity.ACC.User user = SecurityContextHolder.Get();
                Supplier supplier = base.genericMgr.FindById<Supplier>(user.Name);
                EncryptDencryptService.EncryptDencryptService encryptDencryptService = new EncryptDencryptService.EncryptDencryptService();
                supplierCode = encryptDencryptService.EncryptDencrypt(supplier.ShortCode, true, "sih_dms");
            }
            catch (Exception ex)
            {

            }
            return Server.UrlEncode(supplierCode);
        }