async private void WriteCar() { updateTitle(); CD.business1.hidenBackAndExitBtn(); Loading.show1("制卡中,请稍候..."); string error = null; string atr2 = null; await TaskMore.Run(new Action(() => { //==制卡 string result = WeiWang.iWrite(out error); if (error != null) { if (MS2.PutCardToReject() != null) { error += "-卡回收失败"; } return; } })).ConfigureAwait(true); if (error != null) { ShowTip.show(false, BackExit.Exit, error); return; } updateTitle(); // Autograph.GetObject().Goin(sign); putCardOut(); }
async private void WriteCar() { updateTitle(); CD.business1.hidenBackAndExitBtn(); Loading.show1("制卡中,请稍候..."); string error = null; string message = null; await TaskMore.Run(new Action(() => { //==制卡 string result = WeiWang.iWrite(out error); if (error != null) { if (MS2.PutCardToReject() != null) { error += "-卡回收失败"; } return; } else { string result2 = WeiWang.backTOSKG(Config.dic("KeyId"), personid, name, "-1"); if (result2 != "OK") { message += "市卡管回盘失败,请取卡后联系工作人员,以免影响正常使用!"; ShowTip.show(false, BackExit.Exit, message); } } //0,6217281914006994119,441800 ,441225198703040437,R47708862,441800D1560000053030737878EC1A84,杨建辉,0087CF20018649618B00930612,2.00 ,20200226,20300226 //0,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 //0,银行卡号 ,发卡地区,社会保障号码 ,卡号 ,卡识别码 ,姓名 ,卡复位信息 ,规范版本,发卡日期,卡有效期 string[] results = result.Split(','); })).ConfigureAwait(true); if (error != null) { ShowTip.show(false, BackExit.Exit, error); return; } putCardOut(); }
async private void WriteCar() { updateTitle(); CD.business1.hidenBackAndExitBtn(); Loading.show1("制卡中,请稍候..."); string error = null; await TaskMore.Run(new Action(() => { //==制卡 string result = WeiWang.iWrite(out error); if (error != null) { if (MS2.PutCardToReject() != null) { error += "-卡回收失败"; } return; } /* * //==读卡信息 * string[] datas = null; * string atr2 = MS2.GetATR(out error); * if (error != null) * return; * bankcarNum = MS2.ReadBankNum(out error); * if (error != null) * return; * //卡识别码、卡类别、规范版本、初始化机构编号、发卡日期、卡有效期、卡号、社会保障号码、姓名、性别、民族、出生地、出生日期 * //0 1 2 3 4 5 6 7 8 9 10 11 12 * datas = MS2.GetBaseMsg(out error); * if (error != null) * return; * ssid = datas[6]; */ //0,6217281914006994119,441800 ,441225198703040437,R47708862,441800D1560000053030737878EC1A84,杨建辉,0087CF20018649618B00930612,2.00 ,20200226,20300226 //0,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 //0,银行卡号 ,发卡地区,社会保障号码 ,卡号 ,卡识别码 ,姓名 ,卡复位信息 ,规范版本,发卡日期,卡有效期 string[] results = result.Split(','); MakeJson mj = new MakeJson(); tools.AnalyzeJson aj = Network3.getJson(mj, "deviceLogin", out error); mj3 = new MakeJson(); mj3.add("yhkh", results[1], DataStyle.STR); mj3.add("orgCode", aj["data"]["orgCode"], DataStyle.STR); mj3.add("devSeq", aj["data"]["devSeq"], DataStyle.STR); mj3.add("orgId", aj["data"]["orgId"], DataStyle.STR); mj3.add("atr", results[7], DataStyle.STR); mj3.add("ksbm", results[5], DataStyle.STR); mj3.add("sfzh", results[3], DataStyle.STR); mj3.add("xm", results[6], DataStyle.STR); mj3.add("kh", results[4], DataStyle.STR); mj3.add("backStatus", "1", DataStyle.STR); mj3.add("status", "1", DataStyle.STR); mj3.add("description", "制卡成功", DataStyle.STR); ssid = results[4]; })).ConfigureAwait(true); if (error != null) { ShowTip.show(false, BackExit.Exit, error); return; } updateTitle(); Autograph.GetObject().Goin(sign); }