public Get_OutIsHaveNotReturnGoods IsHaveNotReturnGoods(string data) { Get_OutIsHaveNotReturnGoods json = new Get_OutIsHaveNotReturnGoods(); try { Get_InIsHaveNotReturnGoods input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InIsHaveNotReturnGoods>(data); DBLendingInfo db = new DBLendingInfo(ConData.WebSiteConnectionString); Results r = new Results(); r.result = db.IsHaveNotReturnGoods(input.TrainmanGUID); if (r.result) { json.data = r; json.result = "0"; json.resultStr = "返回成功"; } else { json.result = "1"; json.resultStr = "提交失败:"; } } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }
public Get_OutIsHaveNotReturnGoods IsHaveNotReturnGoods(string data) { Get_OutIsHaveNotReturnGoods json = new Get_OutIsHaveNotReturnGoods(); try { Get_InIsHaveNotReturnGoods input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InIsHaveNotReturnGoods>(data); DBGoodsMgr db = new DBGoodsMgr(); Results r = new Results(); r.result = db.IsHaveNotReturnGoods(input.TrainmanGUID); json.data = r; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }