Esempio 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();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Init
        /// </summary>
        void Init()
        {
            this.lsvItemPath.Height = 0;

            clsBIHOrderService svc = new clsDcl_GetSvcObject().m_GetOrderSvcObject();
            DataTable          tmp = svc.GetCpExecPlan(this.patVo.m_strRegisterID);

            ExecPlanDataSource = tmp.Rows[0];
            string deptCode = svc.GetCpDeptCode(patVo.m_strDeptID);

            //deptCode = "0327";
            PathDataSource = svc.GetCpListByDeptCode(deptCode);
            VarDataSource  = svc.GetCpVariation(Convert.ToInt32(this.ExecPlanDataSource["cpid"].ToString()));
            GetHistory(svc.GetCpExecVarList(Convert.ToDecimal(this.ExecPlanDataSource["execid"].ToString())));
            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();
            }

            this.clstTarget.Items.Clear();
            if (VarDataSource != null && VarDataSource.Rows.Count > 0)
            {
                foreach (DataRow dr in VarDataSource.Rows)
                {
                    this.clstTarget.Items.Add(dr["varinfo"].ToString());
                }
            }

            this.lblCpName.Text   = this.ExecPlanDataSource["cpname"].ToString();
            this.lblDeptName.Text = this.patVo.m_strDeptName;
            this.lblBedNo.Text    = this.patVo.m_strBedName + "床";
            this.lblPatName.Text  = this.patVo.m_strPatientName;
            this.lblIpNo.Text     = this.patVo.m_strInHospitalNo;
        }