public BaseResult ProcedureOutQuery(Hashtable param) { BaseResult br = new BaseResult(); if (param == null || param["json_param"] == null || string.IsNullOrEmpty(param["json_param"].ToString()) || param["sign"] == null || string.IsNullOrEmpty(param["sign"].ToString()) ) { br.Success = false; br.Message.Add("必要参数不可以为空."); return(br); } var reqModel = Utility.JSON.Deserialize <ProcedureOutQueryModel>(param["json_param"].ToString()); if (reqModel == null || string.IsNullOrEmpty(reqModel.proname)) { br.Success = false; br.Message.Add("必要参数不符合要求."); return(br); } try { Hashtable ht = new Hashtable(); ht.Add("proname", reqModel.proname); ht.Add("str", reqModel.str ?? ""); ht.Add("outstr", reqModel.outstr ?? ""); var rList = DAL.ProcedureOutQuery(ht); var outstr = ht["outstr"].ToString(); ProcedureOutQueryResult result = new ProcedureOutQueryResult() { rList = rList, outstr = outstr }; br.Success = true; br.Message.Clear(); br.Message.Add(string.Format("操作成功!")); br.Data = result; return(br); } catch (Exception ex) { br.Success = false; br.Message.Clear(); br.Message.Add(string.Format("操作失败 原因:" + ex.Message)); return(br); } }
/// <summary> /// 获取订单数 cxb 2015-5-15 /// </summary> /// <param name="param"></param> /// <returns></returns> public override BaseResult Get(Hashtable param) { BaseResult res = new BaseResult() { Success = true }; Hashtable ht = new Hashtable(); ht.Add("proname", param["proname"]); ht.Add("str", param["str"]); ht.Add("outstr", param["outstr"] ?? ""); var rList = DAL.ProcedureOutQuery(ht); var outstr = ht["outstr"].ToString(); ProcedureOutQueryResult result = new ProcedureOutQueryResult() { rList = rList, outstr = outstr }; //var data = DAL.ProcedureQuery(param); res.Data = result; return(res); }