private void QueryData(HttpContext context, bool p) { if (p) { } else { //查询数据 //string Mzzybz = context.Request["Mzzybz"];//0 门诊 1住院 string code = context.Request.Params["code"];//住院号或门诊号 string codeType = context.Request.Params["codeType"]; string dateNow = context.Request.Params["dateNow"]; Model.QueryRecoder qqq = new Model.QueryRecoder(); qqq.Code = code; qqq.CodeType = codeType; qqq.QueryType = "NormalLisReport"; qqq.Uname = Common.CookieHelper.GetCookieValue("username"); qqq.AddDate = DateTime.Parse(dateNow); qqq.IsDel = false; BLL.Request.Request request = new BLL.Request.NormalLisReportRequest(qqq); BLL.NormalLisReport NData = new BLL.NormalLisReport(); string result = NData.GetData(qqq, true); context.Response.Write(result); } }
private void PostData(HttpContext context) { string code = context.Request.Params["code"].Trim(); string codeType = context.Request.Params["codeType"].Trim(); string strNormalLis = context.Request.Params["NormalLis"]; string strusername = Common.CookieHelper.GetCookieValue("username").Trim(); BLL.NormalLisReport bll = new BLL.NormalLisReport(); string result = bll.PostData(code, codeType, strNormalLis, strusername, false); context.Response.Write(result); }
private bool CheckData(Model.NormalLisReport data) { BLL.NormalLisReport normalLisReport = new BLL.NormalLisReport(); bool result = false; if (data != null) { string whereStr = string.Format("chinese ='{0}' and hospnum ='{1}' and check_date ='{2}' and patname='{3}'", data.chinese, data.hospnum, data.check_date, data.patname); List<Model.NormalLisReport> list = normalLisReport.GetModelList(whereStr); if (list != null && list.Count > 0) { result = true; } } return result; }
private bool CheckData(Model.NormalLisReport data) { BLL.NormalLisReport normalLisReport = new BLL.NormalLisReport(); bool result = false; if (data != null) { string whereStr = string.Format("chinese ='{0}' and hospnum ='{1}' and check_date ='{2}' and patname='{3}'", data.chinese, data.hospnum, data.check_date, data.patname); List <Model.NormalLisReport> list = normalLisReport.GetModelList(whereStr); if (list != null && list.Count > 0) { result = true; } } return(result); }
private void QueryData(HttpContext context, bool p) { if (p) { } else { //查询数据 //string Mzzybz = context.Request["Mzzybz"];//0 门诊 1住院 string code = context.Request["code"];//住院号或门诊号 string ksrq00 = context.Request["ksrq00"]; string jsrq00 = context.Request["jsrq00"]; BLL.NormalLisReport n = new BLL.NormalLisReport(); bool success; object obj = n.GetData(code, ksrq00, jsrq00, out success); ReturnData resd = new ReturnData(obj, success); string jsonStrResult = resd.Res(); context.Response.Write(jsonStrResult); } }