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); } } }