private void Form1_Load(object sender, EventArgs e) { //jk = new dahuajk("http://10.100.4.14/WPMS", "system", "admin123", false); jk = new Dahuajk("http://10.100.47.20/WPMS", "黄璐", "zpcxxb3467", false); CardParams cardParams = new CardParams(); paramDict = jk.getParamDict(cardParams.modelList()); baseUrl = cardParams.baseUrl; }
private void button2_Click(object sender, EventArgs e) { jk = new Dahuajk("http://10.100.4.14/WPMS/login", "system", "admin123", false); string url; string _json; //url = "http://10.100.4.14/CardSolution/card/accessControl/device/bycondition/combined"; //_json = jk.getDevice(url, 100, 1); //url = "http://10.100.4.14/CardSolution/card/accessControl/swingCardRecord/bycondition/combined"; //_json = jk.getSwingCardRecord(url, "2018-11-01 17:50:00", "2018-11-04 17:53:00", 100, 1); url = "http://10.100.4.14/CardSolution/card/accessControl/doorAuthority"; //_json = jk.getPersonKeyByCardNumber(url, 00000112); //_json = card.getPersonKeyByCardNumber(url, 00000112); url = "http://10.100.4.14/CardSolution/card/person/bycondition/combined"; //_json = jk.getPersonInfo(url, 10); //_json = card.getPersonInfo(url, 10); //textBox1.Text = _json; string picString = changeImageTobase64(); ToImage(picString); }