public TCHospInfoData GetOnHospBasic(decimal id_Orgid, string is_Frcode, string is_FJCMYear, string is_FCOUNTYMARK, string OutYN, string AllYN, string is_FIMPORTCODE,
System.Collections.IDictionary iDictionary)
{
IComMngHosp factory = Factory.ComMng.ComMngHosp.Create();
string sql = "";
string is_frcode=String.Empty;
if(iDictionary.Contains("is_frcode")) is_frcode=iDictionary["is_frcode"].ToString();
//基层接口模式为3,结算是必须是有出院时间的记录 潘帅阳 2015年3月24日9:43:09
sql = "and x1.fimportorg=" + id_Orgid + " and x1.frcode='" + is_Frcode + "' and x1.FJCMYEAR<='" + is_FJCMYear + "' and x1.fcountymark='" + is_FCOUNTYMARK + "' and x1.fouthospdate is not null and x1.FIMPORTCODE='3' order by x1.FINDATE desc";
return factory.QueryTCHospInfo(sql);
{
IComMngHosp factory = Factory.ComMng.ComMngHosp.Create();
string sql = "";
string is_frcode=String.Empty;
if(iDictionary.Contains("is_frcode")) is_frcode=iDictionary["is_frcode"].ToString();
//基层接口模式为3,结算是必须是有出院时间的记录 潘帅阳 2015年3月24日9:43:09
sql = "and x1.fimportorg=" + id_Orgid + " and x1.frcode='" + is_Frcode + "' and x1.FJCMYEAR<='" + is_FJCMYear + "' and x1.fcountymark='" + is_FCOUNTYMARK + "' and x1.fouthospdate is not null and x1.FIMPORTCODE='3' order by x1.FINDATE desc";
return factory.QueryTCHospInfo(sql);
}
调用:
//使用哈希传值便于扩展
Hashtable ht=new Hashtable();
ht.Add("is_frcode",is_FRCode);
//所有未结算信息基层接口
DataSet ds = new Business.ComMngBiz.ComMngHosp().GetOnHospBasic(Convert.ToDecimal(is_FMOrgId), is_FRCode, is_JCMYear, "0", "Y", "1",ht);