public ucDrugStoreQuery(string drugCode) : this() { this.neuSpread1_Sheet1.Rows.Count = 0; Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); ArrayList alStorage = itemManager.QueryStoreDeptList(drugCode); if (alStorage == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("根据药品编码检索库存信息失败")); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Storage storage in alStorage) { this.neuSpread1_Sheet1.Rows.Add(0, 1); this.neuSpread1_Sheet1.Cells[0, 0].Text = storage.StockDept.Name; this.neuSpread1_Sheet1.Cells[0, 1].Text = storage.Item.Name; this.neuSpread1_Sheet1.Cells[0, 2].Text = storage.Item.Specs; this.neuSpread1_Sheet1.Cells[0, 3].Text = storage.BatchNO; this.neuSpread1_Sheet1.Cells[0, 4].Text = storage.Item.Product.Producer.ID; this.neuSpread1_Sheet1.Cells[0, 5].Text = storage.StoreQty.ToString("N"); this.neuSpread1_Sheet1.Cells[0, 6].Text = storage.Item.MinUnit; } }