Ejemplo n.º 1
0
        private void SetPatientList(string departNO)
        {
            m_WaitDialog = new WaitDialogForm("正在加载病人列表!", "请您稍后!");
            SetWaitDialogCaption();
            DataTable dt = m_SqlManger.GetDepartmentPatStatInfo(m_deptNo, m_patID, m_name, m_status, m_beginInTime, m_endInTime, USERINDENTY);

            gridControlPatientList.BeginUpdate();
            gridControlPatientList.DataSource = dt;
            gridControlPatientList.EndUpdate();
            HideWaitDialog();
        }
Ejemplo n.º 2
0
        }                                 //满分值。通过配置中取得 ywk 2012年6月12日 14:43:29
        /// <summary>
        /// 按科室查询病人信息
        /// </summary>
        /// <param name="p"></param>
        private void BindDataSouce(string deptid)
        {
            try
            {
                //新加个参数,计算总分
                //SumPoint = Int32.Parse(m_SqlManager.GetConfigValueByKey("EmrPointConfig"));
                string point     = m_SqlManager.GetConfigValueByKey("EmrPointConfig");
                int    sumpoint1 = 85;
                int    sumpoint2 = 100;

                if (point.Contains(","))
                {
                    string[] points = point.Split(',');
                    sumpoint1 = Int32.Parse(points[0]);
                    sumpoint2 = Int32.Parse(points[1]);
                }
                m_patID       = textEditPatID.Text.Trim();
                m_name        = textEditName.Text.Trim();
                m_status      = lookUpEditorStatus.CodeValue.Trim();
                m_sortid      = lookUpCCNAME.CodeValue;
                m_beginInTime = Convert.ToDateTime(dateEditBeginInTime.EditValue).ToString("yyyy-MM-dd HH:mm:ss").Trim();
                m_endInTime   = Convert.ToDateTime(dateEditEndInTime.EditValue).ToString("yyyy-MM-dd HH:mm:ss").Trim();

                DataTable dt = m_SqlManager.GetDepartmentPatStatInfo(deptid, m_patID, m_name, m_status, m_beginInTime, m_endInTime, m_sortid, sumpoint1, sumpoint2, "point", m_userid, m_qcAuth);

                //DataTable dt = m_app.SqlHelper.ExecuteDataTable(string.Format(SQLUtil.sql_QueryWardDetailInfo, deptid));
                gridControl1.DataSource = dt;

                this.labPatCount.Text = dt.Rows.Count.ToString();
            }
            catch (Exception)
            {
                throw;
            }
        }