Ejemplo n.º 1
0
        private void ReBind(string strID, string strTag, string strNurseID)
        {
            ArrayList arr = new ArrayList();

            if (strTag == "0")
            {
                arr = oCBed.GetBedList(strID);
            }
            if (strTag == "1")
            {
                arr = oCBed.GetBedListByRoom(strID, strNurseID);
            }

            this.dataSet_Init(arr);
            InitSpread();
        }
Ejemplo n.º 2
0
        protected override int  OnSetValue(object neuObject, TreeNode e)
        {
            //string strID = "";
            ArrayList arr = new ArrayList();

            Neusoft.HISFC.BizLogic.Manager.Bed oCBed = new Neusoft.HISFC.BizLogic.Manager.Bed();
            if (e != null)
            {
                CurrentNode = e;
                if (e.Parent != null && e.Parent.Parent != null)//病房号
                {
                    string strNurse = e.Parent.Tag.ToString();
                    strID = e.Text.Trim();
                    arr   = oCBed.GetBedListByRoom(strID, strNurse);
                    //排序 {1E01AC87-5E6A-4dbc-AB55-7970C28DC843} wbo 2010-09-18
                    arr.Sort(new CompareByBedNO());
                    this.strTag = "1";
                    this.dataSet_Init(arr);
                    this.NurseID = strNurse; //护士站
                }
                else if (e.Parent != null)   //护士站号
                {
                    if (e.Tag != null)
                    {
                        strID = e.Tag.ToString();
                        arr   = oCBed.GetBedList(strID);
                        //排序 {1E01AC87-5E6A-4dbc-AB55-7970C28DC843} wbo 2010-09-18
                        arr.Sort(new CompareByBedNO());
                        this.strTag = "0";
                        this.dataSet_Init(arr);
                        strID = "";
                    }
                }
                else
                {
                    strID = "ALL";
                    arr   = oCBed.GetBedList(strID);
                    //排序 {1E01AC87-5E6A-4dbc-AB55-7970C28DC843} wbo 2010-09-18
                    arr.Sort(new CompareByBedNO());
                    this.dataSet_Init(arr);
                }
            }


            return(base.OnSetValue(neuObject, e));
        }