使用哈希传值

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);

        }


调用:
 //使用哈希传值便于扩展
                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);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值