/// <summary> /// 查询基本数据 /// </summary> /// <param name="context"></param> /// <returns></returns> private string getSampleSource(HttpContext context) { string strPid = context.Request["PId"].ToString(); string strPName = context.Request["PName"].ToString(); BLL.BasedInfo baseinfo = new BLL.BasedInfo(); //获取数据 DataSet ds = new DataSet(); if (string.IsNullOrEmpty(strPid)) { ds = baseinfo.GetList("PatientName='" + strPName + "'"); } else if (string.IsNullOrEmpty(strPName)) { ds = baseinfo.GetList("PatientID=" + strPid); } else { ds = baseinfo.GetList("PatientName='" + strPName + "' and PatientID=" + strPid); } return FreezerProUtility.Fp_Common.FpJsonHelper.ObjectToJsonStr(ds); }
protected void ok_Click(object sender, EventArgs e) { RuRo.BLL.BasedInfo baseinfo = new BLL.BasedInfo(); txtBasedInfo.Text = baseinfo.Exists(1).ToString(); }