第三方系统接入

using Kingdee.BOS.Util;
using System;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class Form1 : Form
    {
        public Form1)
        {
            InitializeComponent);
        }

        private void button1_Clickobject sender, EventArgs e)
        {
            int lcId = 2052;
            long timestamp = DateTimeFormatUtils.CurrentTimeMillis) / 1000;//时间戳
            string dbId = "5c52e430f93eb6";//数据中心ID
            string usserName = "kxm";//用户名称
            string appId = "Test";//第三方系统应用Id
            string appSecret = "ad8052ffe188401fb58290cf28ce432d";//第三方系统应用秘钥
            string[] arr = new string[] { dbId, usserName, appId, appSecret, timestamp.ToString) };
            string sign = Kingdee.BOS.Util.SHA1Util.GetSignaturearr);//签名
            string urlPara = string.Format"|{0}|{1}|{2}|{3}|{4}|{5}", dbId, usserName, appId, sign, timestamp, lcId);
            urlPara = System.Text.UTF8Encoding.Default.GetBytesurlPara).ToBase64);
            string url = "http://desktop-tnh1q9q/K3Cloud/Silverlight/IndexSL.aspx?ud=" + urlPara;
            System.Diagnostics.Process.Start"iexplore.exe", url);

        }
    }
}

  

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注