Exemple #1
0
        /// <summary>
        /// 列表显示
        /// </summary>
        /// <returns>成功返回1 失败返回-1</returns>
        protected virtual int ShowList()
        {
            this.Clear();

            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(Language.Msg("正在加载配置数据,请稍候..."));
            Application.DoEvents();

            //根据库存药房/批次获取列表
            Neusoft.HISFC.BizLogic.Pharmacy.Item          itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item();
            List <Neusoft.HISFC.Models.Pharmacy.ApplyOut> alList      = itemManager.QueryCompoundList(this.ApproveDept.ID, this.GroupCode, "0");

            if (alList == null)
            {
                Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                MessageBox.Show(Language.Msg("获取配置单列表发生错误") + itemManager.Err);
                return(-1);
            }

            this.tvCompound.ShowList(alList);

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();

            return(1);
        }