Exemplo n.º 1
0
        /// <summary>
        /// Init
        /// </summary>
        void Init()
        {
            this.lblPatName.Text    = this.patVo.m_strPatientName;
            this.lsvItemICD.Height  = 0;
            this.lsvItemPath.Height = 0;
            this.lsvItemSyn.Height  = 0;

            clsBIHOrderService svc      = new clsDcl_GetSvcObject().m_GetOrderSvcObject();
            string             deptCode = svc.GetCpDeptCode(patVo.m_strDeptID);

            //deptCode = "0327";
            PathDataSource = svc.GetCpListByDeptCode(deptCode);
            SynDataSource  = svc.GetSyndrome();

            if (PathDataSource != null && PathDataSource.Rows.Count > 0)
            {
                PathDataSourceFilter = PathDataSource.Clone();
                PathDataSourceFilter.BeginLoadData();
                List <string> lstCpId = new List <string>();
                foreach (DataRow dr in PathDataSource.Rows)
                {
                    if (lstCpId.IndexOf(dr["cpid"].ToString()) < 0)
                    {
                        lstCpId.Add(dr["cpid"].ToString());
                        PathDataSourceFilter.LoadDataRow(dr.ItemArray, true);
                    }
                }
                PathDataSourceFilter.EndLoadData();
            }
        }