/// <summary> /// 库存警戒线判断 /// </summary> /// <param name="drugCode"></param> public virtual void JudgeWarnStore() { if ((this.funModle == OutpatientFun.Drug && this.IsJudgeWarnDruged) || (this.funModle == OutpatientFun.Send && this.IsJudgeWarnSend)) { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); for (int i = 0; i < this.neuSpread1_Sheet1.Rows.Count - 1; i++) { Neusoft.HISFC.Models.Pharmacy.ApplyOut applyOut = this.neuSpread1_Sheet1.Rows[i].Tag as Neusoft.HISFC.Models.Pharmacy.ApplyOut; if (itemManager.JudgeIsWarnStore(this.ApproveDept.ID, applyOut.Item.ID, this.judgeWarnPreStore, this.judgeWarnLowQty)) { if (this.MessageEvent != null) { this.MessageEvent(this.neuSpread1_Sheet1.Cells[i, 1].Text + " 已达到库存警戒线!!", System.EventArgs.Empty); } } } } }