private void button26_Click(object sender, EventArgs e) { Workflow wf = new Workflow(); LogonBLL bll = new LogonBLL(); var result = bll.Logon(textBox1.Text); }
private void button1_Click(object sender, EventArgs e) { //string dt = "{\"dt\":\"2010-01-01\"}"; //string dt1 = "{\"2010-01-01\"}"; //jsonTest t = JsonHelper.Deserialize<jsonTest>(dt); //var t1 = JsonHelper.Deserialize<DateTime?>(dt1); Workflow wf = new Workflow(); RoleBLL rolebll = new RoleBLL(); //AssetBLL assetbll = new AssetBLL(); //var list = rolebll.GetUserSubUserIDs("13"); //var roles = assetbll.Query(new AssetQueryForm //{ // Creators = list, //}); //LogonRequest request = new LogonRequest(); //request.form = new LogonServiceForm //{ // username = "******", // password = "******", //}; //var response = SDKFactory.Client.Execute(request); //token = response.form.token; //MessageBox.Show(response.ResponseBody); LogonBLL bll = new LogonBLL(); var result = bll.Logon("admin", "123456"); token = result.token; }