private void ucDrugList1_ChooseDataEvent(FarPoint.Win.Spread.SheetView sv, int activeRow) { if (sv != null && activeRow >= 0) { string drugID; drugID = sv.Cells[activeRow, 0].Value.ToString(); //取药品字典信息 Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); this.item = itemManager.GetItem(drugID); if (this.item != null) { //{E49F9CEA-2E6D-4b2e-919F-99145BEE3E68} 协定处方校验 对于未维护明细的协定处方,不能进行入库操作 if (this.item.IsNostrum == true) { List <Neusoft.HISFC.Models.Pharmacy.Nostrum> nostrumList = itemManager.QueryNostrumDetail(this.item.ID); if (nostrumList == null || nostrumList.Count <= 0) { MessageBox.Show(this.item.Name + " 为协定处方,但尚未进行明细内容维护,不能进行入库操作"); return; } } this.Clear(true); //标志是否已新加的药品 this.item.User01 = "1"; if (Function.SetPrice(this.privDept.ID, this.item.ID, ref this.item) == -1) { return; } //添加数据 this.SetItem(this.item); this.ntbInQty.Focus(); //{9E7FB328-89B3-4f43-A417-2EC3ACFC7093} //双击清空键值 if (this.ClearPriKey != null) { Neusoft.FrameWork.Models.NeuObject obj = new Neusoft.FrameWork.Models.NeuObject(); this.ClearPriKey(ref obj); } } else { MessageBox.Show(Language.Msg("检索药品基本信息失败")); this.ucDrugList1.SetFocusSelect(); } } }