コード例 #1
0
        /// <summary>
        /// 队列
        /// </summary>
        private void timer2_Tick(object sender, EventArgs e)
        {
            //获取当前控件数量
            ps = psMgr.GetEmployeeInfo(this.queMgr.Operator.ID);
            DateTime currenttime = this.queMgr.GetDateTimeFromSysDateTime();
            DateTime current     = currenttime.Date;
            string   noonID      = Nurse.Function.GetNoon(currenttime);//午别

            this.alQueue = queMgr.Query(ps.Nurse.ID, current, noonID);
            int intTmp = this.alQueue.Count;

            if (intTmp <= 0)
            {
                this.Controls.Clear();
                //设置出现以外情况的处理(没有维护队列)-------------------------------------??????????
            }
            //控件数量跟原来相比较
            if (intTmp != queueNum && intTmp > 0)
            {
                if (queueNum > 0)
                {
                    this.Controls.Clear();
                }
                //赋值一个新的控件/队列数量
                this.queueNum = intTmp;
            }
        }
コード例 #2
0
ファイル: ucTriage.cs プロジェクト: ewin66/Management-System
        public ucTriage(string nurseID)
        {
            InitializeComponent();

            //Neusoft.HISFC.BizLogic.Nurse.Queue queueMgr = new Neusoft.HISFC.BizLogic.Nurse.Queue();
            Neusoft.HISFC.BizLogic.Nurse.Dept deptMgr = new Neusoft.HISFC.BizLogic.Nurse.Dept();
            Neusoft.HISFC.BizProcess.Integrate.Registration.Registration schemaMgr = new Neusoft.HISFC.BizProcess.Integrate.Registration.Registration();

            DateTime current = deptMgr.GetDateTimeFromSysDateTime();

            string noonID = Nurse.Function.GetNoon(current);

            //ArrayList queues = queueMgr.Query(nurseID,current.Date,noonID);
            queues = queueMgr.Query(nurseID, current.Date, noonID);
            if (queues == null)
            {
                queues = new ArrayList();
            }


            ArrayList depts = deptMgr.GetDeptInfoByNurseNo(nurseID);

            this.cmbQueue.AddItems(queues);
            #region {4600A33C-8065-4b2c-93D2-9B26B24F61CF}
            if (this.cmbQueue.Items.Count > 0)
            {
                this.cmbQueue.SelectedIndex = 0;
                // return;
            }
            #endregion
            //this.cmbQueue.isItemOnly = true;
            this.txtCard.ReadOnly     = true;
            this.txtCard.BackColor    = Color.White;
            this.txtName.ReadOnly     = true;
            this.txtName.BackColor    = Color.White;
            this.txtRegDate.ReadOnly  = true;
            this.txtRegDate.BackColor = Color.White;
            this.txtDept.ReadOnly     = true;
            this.txtDept.BackColor    = Color.White;
        }