public Get_OutQueryDetails QueryDetails(string data) { Get_OutQueryDetails json = new Get_OutQueryDetails(); try { Get_InQueryDetails input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InQueryDetails>(data); DBLendingInfoDetail db = new DBLendingInfoDetail(ConData.WebSiteConnectionString); LendingDetailList l = new LendingDetailList(); l.lendingDetailList = db.QueryDetails(input.queryParam); json.data = l; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }
public Get_OutQueryGoodsNow QueryGoodsNow(string data) { Get_OutQueryGoodsNow json = new Get_OutQueryGoodsNow(); try { Get_InQueryGoodsNow input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InQueryGoodsNow>(data); DBLendingInfoDetail db = new DBLendingInfoDetail(ConData.WebSiteConnectionString); LendingDetailList l = new LendingDetailList(); l.lendingDetailList = db.QueryGoodsNow(input.WorkShopGUID, input.GoodType, input.GoodID, input.orderType); json.data = l; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }
public Get_OutGetTrainmanNotReturnLendingInfo GetTrainmanNotReturnLendingInfo(string data) { Get_OutGetTrainmanNotReturnLendingInfo json = new Get_OutGetTrainmanNotReturnLendingInfo(); try { Get_InGetTrainmanNotReturnLendingInfo input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetTrainmanNotReturnLendingInfo>(data); DBGoodsMgr db = new DBGoodsMgr(); LendingDetailList l = new LendingDetailList(); l.lendingDetailList = db.GetTrainmanNotReturnLendingInfo(input.TrainmanGUID); json.data = l; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }