Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="didto"></param>
        /// <param name="item"></param>
        /// <param name="ditp_code"></param>
        private void FillDiItemInfo(DIDTO didto, Cidixy item, string ditp_code)
        {
            didto.Id_diitm         = null;
            didto.Id_didef         = item.Id_didef;
            didto.Didef_code       = item.Id_didef_code;
            didto.Didef_name       = item.Id_didef_name;
            didto.Id_ditp          = this.HeadDiDiagDO.Id_ditp;
            didto.Sd_ditp          = this.HeadDiDiagDO.Sd_ditp;
            didto.Id_ditp_name     = item.Id_ditp_name;
            didto.Supplement       = item.Supplement;
            didto.Id_disys         = item.Id_disys;
            didto.Sd_disys         = item.Sd_disys;
            didto.Id_disys_name    = item.Id_disys_name;
            didto.Di_standard      = item.Di_standard;
            didto.Di_standard_name = item.Di_standard_name;
            didto.Fg_suspdi        = item.Fg_suspdi;
            didto.Fg_ur            = item.Fg_ur;
            didto.Id_infectiontp   = item.Id_infectiontp;
            didto.Sd_infectiontp   = item.Sd_infectiontp;
            didto.Fg_majdi         = (ditp_code == CiDictCodeConst.SD_SUPPLY ? false : item.Fg_majdi);

            didto.Dt_di      = CommonExtentions.NowTime(this);
            didto.Supplement = item.Supplement;
            didto.Fg_chronic = item.Fg_chronic;
            didto.Fg_special = item.Fg_special;

            didto.Id_disys_name = "西医诊断";
        }
Exemple #2
0
        /// <summary>
        /// 用CidiagAggDO 对象数据填充西医诊断明细数据列表
        /// </summary>
        /// <param name="cidiListxy"></param>
        /// <param name="ciagg"></param>
        /// <param name="item"></param>
        private void fillCidixyList(List <Cidixy> cidiListxy, CidiagAggDO cidiagAggDO, CiDiagItemDO item)
        {
            Cidixy xy = new Cidixy();

            //xy.Id_diitm = item.Id_diitm;
            xy.Id_didef         = item.Id_didef;
            xy.Id_didef_code    = item.Didef_code;
            xy.Id_didef_name    = item.Didef_name;
            xy.Id_ditp          = cidiagAggDO.getParentDO().Id_ditp;
            xy.Id_ditp_code     = cidiagAggDO.getParentDO().Code_ditp;
            xy.Id_ditp_name     = cidiagAggDO.getParentDO().Name_ditp;
            xy.Id_disys         = item.Id_disys;
            xy.Id_disys_name    = item.Id_disys_name;
            xy.Di_standard      = item.Di_standard;
            xy.Di_standard_code = item.Di_standard_code;
            xy.Di_standard_name = item.Di_standard_name;
            xy.Id_disys_name    = item.Id_disys_name;
            xy.Fg_majdi         = item.Fg_majdi;
            xy.Fg_suspdi        = item.Fg_suspdi;
            xy.Supplement       = item.Supplement;
            xy.Sd_disys         = item.Sd_disys;
            xy.Fg_ur            = item.Fg_ur;
            xy.Fg_chronic       = item.Fg_chronic;
            xy.Fg_special       = item.Fg_special;
            xy.Id_infectiontp   = item.Id_infectiontp;
            xy.Sd_infectiontp   = item.Sd_infectiontp;
            xy.Fg_hpbeyond      = (item.Eu_hpbeyond == "1") ? true : false;
            cidiListxy.Add(xy);
        }
Exemple #3
0
        private String ToDescription(Cidixy item, int index)
        {
            String str = "   " + index + "," + item.Id_didef_name;

            if (item.Supplement != null && item.Supplement != "")
            {
                str += "——" + item.Supplement + "";
            }
            if (str != "" && item.Fg_suspdi != null && (bool)item.Fg_suspdi)
            {
                str += " ?  \n";
            }
            else
            {
                str += "\n";
            }
            return(str);
        }
Exemple #4
0
        /// <summary>
        /// 西医
        /// </summary>
        /// <param name="cidiListxy"></param>
        /// <param name="ciagg"></param>
        /// <param name="item"></param>
        private void getCidixy(List <Cidixy> cidiListxy, CidiagAggDO ciagg, CiDiagItemDO item)
        {
            Cidixy xy = new Cidixy();

            xy.Id_diitm         = item.Id_diitm;
            xy.Id_didef         = item.Id_didef;
            xy.Id_didef_code    = item.Didef_code;
            xy.Id_didef_name    = item.Didef_name;
            xy.Id_ditp          = ciagg.getParentDO().Id_ditp;
            xy.Id_ditp_code     = ciagg.getParentDO().Code_ditp;
            xy.Id_ditp_name     = ciagg.getParentDO().Name_ditp;
            xy.Id_disys         = item.Id_disys;
            xy.Id_disys_name    = item.Id_disys_name;
            xy.Di_standard      = item.Di_standard;
            xy.Di_standard_code = item.Di_standard_code;
            xy.Di_standard_name = item.Di_standard_name;
            xy.Id_disys_name    = item.Id_disys_name;
            xy.Fg_majdi         = item.Fg_majdi;
            xy.Fg_suspdi        = item.Fg_suspdi;
            xy.Supplement       = item.Supplement;
            xy.Sd_disys         = item.Sd_disys;
            cidiListxy.Add(xy);
            this.xyCidiList.Add(xy);
        }
Exemple #5
0
 public void Clear(Cidixy xy)
 {
     LogicEx.GetInstance().Clear(xy);
     xy.Fg_majdi  = false;
     xy.Fg_suspdi = false;
 }
Exemple #6
0
 /// <summary>
 /// 判断西医诊断是否为空
 /// </summary>
 /// <param name="xy"></param>
 /// <returns></returns>
 public bool IsEmpty(Cidixy xy)
 {
     return(xy.Id_didef_code == null && xy.Id_didef_name == null);
 }