/// <summary> /// 医院专家查询(分页) /// </summary> /// <param name="pNumber">所在页数</param> /// <param name="pRows">每页显示条数</param> /// <returns></returns> public XmlDocument PageDoctor(int pNumber, int pRows) { XmlDocument doc = new XmlDocument(); try { ArrayList _list = new ArrayList(); string error_msg = ""; QueryDB pdb = new QueryDB(); int ret = pdb.DB_PageDoctor(pNumber, pRows, out _list, out error_msg); if (ret == 0) { XmlElement root = doc.CreateElement(AppUtils.Tag_REXML_Root); doc.AppendChild(root); XmlElement eleMsg = doc.CreateElement(AppUtils.Tag_REXML_Message); root.AppendChild(eleMsg); XmlElement eleResult = doc.CreateElement(AppUtils.Tag_REXML_Result); eleResult.InnerText = AppUtils.Value_Return_Success; root.AppendChild(eleResult); if (null == _list) { doc = ReplyXmlDoc.GetFailureXML(-99, "空的返回values"); return(doc); } foreach (DoctorInfo pdt in _list) { XmlElement eleValue = doc.CreateElement(AppUtils.Tag_REXML_Value); eleMsg.AppendChild(eleValue); XmlElement eleYsxm = doc.CreateElement(AppUtils.Tag_Payment_YSXM); eleValue.AppendChild(eleYsxm); //以下实现数据操作逻辑 eleYsxm.InnerText = pdt.xm; XmlElement eleYsdm = doc.CreateElement(AppUtils.Tag_Payment_YSDM); eleValue.AppendChild(eleYsdm); //以下实现数据操作逻辑 eleYsdm.InnerText = pdt.dm; XmlElement eleYsjb = doc.CreateElement(AppUtils.Tag_Payment_YSJB); eleValue.AppendChild(eleYsjb); //以下实现数据操作逻辑 eleYsjb.InnerText = pdt.jb; } //eleResult.InnerText = "1"; } else { doc = ErrorReturnXml(ret, error_msg); } } catch (Exception ex) { doc = ReplyXmlDoc.GetExceptionXML(AppUtils.Default_Exception_Code, ex); } return(doc); }