예제 #1
0
        private void InsertIntoOtherServiceItem(CommContracts.OtherServiceItem otherServiceItem)
        {
            if (otherServiceItem == null)
            {
                return;
            }
            if (CheckRepeat(otherServiceItem.ID))
            {
                MessageBox.Show(otherServiceItem.Name + "已经存在!");
                return;
            }

            MyDetail item = new MyDetail();

            item.ID             = otherServiceItem.ID;
            item.Name           = otherServiceItem.Name;
            item.SingleDoseUnit = otherServiceItem.Unit;

            m_contentItems.Add(item);
            // 跳转到单次剂量
            if (m_skipList.Count > 0)
            {
                GridSkipTo(m_contentItems.Count - 1, m_skipList.ElementAt(0));
            }
        }
예제 #2
0
        //InsertIntoStoreRoomMaterialNum
        private void InsertIntoStoreRoomMaterialNum(CommContracts.StoreRoomMaterialNum storeRoomMaterialNum)
        {
            if (storeRoomMaterialNum == null)
            {
                return;
            }
            if (CheckStoreRoomMaterialNumRepeat(storeRoomMaterialNum.ID))
            {
                MessageBox.Show(storeRoomMaterialNum.MaterialItem.Name + "已经存在!");
                return;
            }

            MyDetail item = new MyDetail();

            item.StoreRoomNumID = storeRoomMaterialNum.ID;
            item.Name           = storeRoomMaterialNum.MaterialItem.Name;
            item.SingleDoseUnit = storeRoomMaterialNum.MaterialItem.Unit;
            item.Specifications = storeRoomMaterialNum.MaterialItem.Specifications;
            item.Supplier       = storeRoomMaterialNum.Supplier.Name;
            item.Manufacturer   = storeRoomMaterialNum.MaterialItem.Manufacturer;
            item.SellPrice      = storeRoomMaterialNum.MaterialItem.SellPrice;
            item.StockPrice     = storeRoomMaterialNum.StorePrice;
            item.BatchID        = storeRoomMaterialNum.Batch;
            item.ExpirationDate = storeRoomMaterialNum.ExpirationDate;
            item.BeforeOutNum   = storeRoomMaterialNum.Num;


            m_contentItems.Add(item);
            // 跳转到单次剂量
            if (m_skipList.Count > 0)
            {
                GridSkipTo(m_contentItems.Count - 1, m_skipList.ElementAt(0));
            }
        }
예제 #3
0
        private void InsertIntoMedicine(CommContracts.Medicine medicine)
        {
            if (medicine == null)
            {
                return;
            }
            if (CheckRepeat(medicine.ID))
            {
                MessageBox.Show(medicine.Name + "已经存在!");
                return;
            }

            MyDetail item = new MyDetail();

            item.ID             = medicine.ID;
            item.Name           = medicine.Name;
            item.Usage          = CommContracts.UsageEnum.口服;
            item.Specifications = medicine.Specifications;
            item.Manufacturer   = medicine.Manufacturer;
            item.SingleDoseUnit = medicine.Unit;
            item.SellPrice      = medicine.SellPrice;

            m_contentItems.Add(item);
            // 跳转到单次剂量
            if (m_skipList.Count > 0)
            {
                GridSkipTo(m_contentItems.Count - 1, m_skipList.ElementAt(0));
            }
        }