private void ShowAllDetails() { if (this.editEnum == MyTableEditEnum.medicineCheckStock) { m_contentItems.Clear(); m_sumItems.Clear(); CommClient.StoreRoomMedicineNum storeRoomMedicineNum = new CommClient.StoreRoomMedicineNum(); List <CommContracts.StoreRoomMedicineNum> temp = storeRoomMedicineNum.getAllMedicineItemNum(1, "", 0, -1, true, true, false, false); foreach (var sto in temp) { InsertIntoStoreRoomMedicineNum(sto); } } else if (this.editEnum == MyTableEditEnum.materialCheckStock) { m_contentItems.Clear(); m_sumItems.Clear(); CommClient.StoreRoomMaterialNum storeRoomMaterialNum = new CommClient.StoreRoomMaterialNum(); List <CommContracts.StoreRoomMaterialNum> temp = storeRoomMaterialNum.getAllMaterialItemNum(1, "", 0, -1, true, true, false, false); foreach (var sto in temp) { InsertIntoStoreRoomMaterialNum(sto); } } }
// 得到所有药品库存 public List <CommContracts.StoreRoomMedicineNum> getAllMedicineItemNum( string ItemName, int SupplierID, int ItemType, bool IsStatusOk, bool IsHasNum, bool IsOverDate, bool IsNoEnough) { if (CurrentStoreRoom == null) { return(null); } CommClient.StoreRoomMedicineNum myd = new CommClient.StoreRoomMedicineNum(); return(myd.getAllMedicineItemNum(CurrentStoreRoom.ID, ItemName, SupplierID, ItemType, IsStatusOk, IsHasNum, IsOverDate, IsNoEnough)); }
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(); } }