Beispiel #1
0
        // 得到所有的病床
        public List <CommContracts.SickRoom> GetAllSickRoom(string strName = "")
        {
            CommClient.SickRoom myd = new CommClient.SickRoom();

            List <CommContracts.SickRoom> list = new List <CommContracts.SickRoom>();

            list = myd.GetAllSickRoom(strName);
            return(list);
        }
        public EditSickBedView(CommContracts.SickBed sickBed = null)
        {
            InitializeComponent();
            CommClient.Department myd  = new CommClient.Department();
            CommClient.SickRoom   myd1 = new CommClient.SickRoom();

            DepartmentCombo.ItemsSource = myd.getALLDepartment("");
            SickRoomCombo.ItemsSource   = myd1.GetAllSickRoom();
            bIsEdit = false;
            if (sickBed != null)
            {
                this.SickBed                      = sickBed;
                this.NameEdit.Text                = sickBed.Name;
                this.RemarksEdit.Text             = sickBed.Remarks;
                this.DepartmentCombo.SelectedItem = sickBed.SickRoom.Department;
                this.SickRoomCombo.SelectedItem   = sickBed.SickRoom;
                bIsEdit = true;
            }
        }