예제 #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void m_mthInit()
        {
            string CatID = "";

            DataTable dt;

            clsDcl_Charge objCharge = new clsDcl_Charge();

            long l = 0;

            if (CatScope == "2")//旧版门诊
            {
                l = objCharge.m_lngGetChargeItemCat(int.Parse(CatScope), out dtOrg);
            }
            else if (CatScope == "4")//旧版住院
            {
                l = objCharge.m_lngGetChargeItemCat(int.Parse(CatScope), out dtOrg);
            }
            else if (CatScope == "8")//新版门诊
            {
                l = objCharge.m_lngGetChargeItemCat(2, out dtOrg);
            }
            else if (CatScope == "5")//新版住院
            {
                l = objCharge.m_lngGetChargeItemCat(4, out dtOrg);
            }

            if (l > 0)
            {
                if (CatScope == "8")
                {
                    l = objCharge.m_lngGetDefChargeCat("8", "%", out dt);
                }
                else if (CatScope == "5")
                {
                    l = objCharge.m_lngGetDefChargeCat("5", "%", out dt);
                }
                else
                {
                    l = objCharge.m_lngGetDefChargeCat(CatScope, "%", out dt);
                }

                if (l > 0)
                {
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        CatID = dt.Rows[i]["catid_chr"].ToString();

                        if (!hasDef.ContainsKey(CatID))
                        {
                            hasDef.Add(CatID, dt.Rows[i]);
                        }
                    }
                }
            }
        }