Ejemplo n.º 1
0
        // 得到所有的化验项目
        public List <CommContracts.AssayItem> GetAllAssayItem(string strName = "")
        {
            CommClient.AssayItem myd = new CommClient.AssayItem();

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

            list = myd.GetAllAssayItem(strName);
            return(list);
        }
Ejemplo n.º 2
0
        private void getAllData()
        {
            string strFindName = ""; // 暂时先搜索空

            this.Grid1.ItemsSource = null;

            if (editEnum == MyTableEditEnum.xichengyao)
            {
                CommClient.Medicine           myd  = new CommClient.Medicine();
                List <CommContracts.Medicine> list = myd.GetAllXiChengMedicine(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.zhongyao)
            {
                CommClient.Medicine           myd  = new CommClient.Medicine();
                List <CommContracts.Medicine> list = myd.GetOneTypeMedicine(CommContracts.MedicineTypeEnum.中药, strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.medicineInStock)
            {
                CommClient.Medicine           myd  = new CommClient.Medicine();
                List <CommContracts.Medicine> list = myd.GetAllMedicine(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.zhiliao)
            {
                CommClient.TherapyItem           therapyItem = new CommClient.TherapyItem();
                List <CommContracts.TherapyItem> list        = therapyItem.GetAllTherapyItem(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.jianyan)
            {
                CommClient.AssayItem           therapyItem = new CommClient.AssayItem();
                List <CommContracts.AssayItem> list        = therapyItem.GetAllAssayItem(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.jiancha)
            {
                CommClient.InspectItem           therapyItem = new CommClient.InspectItem();
                List <CommContracts.InspectItem> list        = therapyItem.GetAllInspectItem(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.cailiao || editEnum == MyTableEditEnum.materialInStock)
            {
                CommClient.MaterialItem           therapyItem = new CommClient.MaterialItem();
                List <CommContracts.MaterialItem> list        = therapyItem.GetAllMaterialItem(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.qita)
            {
                CommClient.OtherServiceItem           otherServiceItem = new CommClient.OtherServiceItem();
                List <CommContracts.OtherServiceItem> list             = otherServiceItem.GetAllOtherServiceItem(strFindName);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.medicineOutStock)
            {
                CommClient.StoreRoomMedicineNum           storeRoomMedicineNum = new CommClient.StoreRoomMedicineNum();
                List <CommContracts.StoreRoomMedicineNum> list = storeRoomMedicineNum.getAllMedicineItemNum(1, "", 0, -1, true, true, false, false);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
            else if (editEnum == MyTableEditEnum.materialOutStock)
            {
                CommClient.StoreRoomMaterialNum           storeRoomMaterialNum = new CommClient.StoreRoomMaterialNum();
                List <CommContracts.StoreRoomMaterialNum> list = storeRoomMaterialNum.getAllMaterialItemNum(1, "", 0, -1, true, true, false, false);

                this.Grid1.ItemsSource = list;
                this.Grid1.Focus();
            }
        }