Ejemplo n.º 1
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void InitData()
        {
            this.privOper = this.dataManager.Operator;

            List <Neusoft.FrameWork.Models.NeuObject> alPriv = Neusoft.HISFC.Components.Common.Classes.Function.QueryPrivList("0330", true);

            if (alPriv != null && alPriv.Count != 0)
            {
                this.BeginTime = this.dataManager.GetDateTimeFromSysDateTime().Date.AddYears(-1);
                this.EndTime   = this.dataManager.GetDateTimeFromSysDateTime();
            }

            #region 获取帮助类

            Neusoft.HISFC.BizLogic.Pharmacy.Constant phaCons = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            ArrayList alCompany = phaCons.QueryCompany("1");
            if (alCompany != null)
            {
                this.companyHelper = new Neusoft.FrameWork.Public.ObjectHelper(alCompany);
            }
            ArrayList alProduce = phaCons.QueryCompany("0");
            if (alProduce != null)
            {
                this.producHelper = new Neusoft.FrameWork.Public.ObjectHelper(alProduce);
            }

            #endregion

            this.numFpCellType.DecimalPlaces = 4;

            this.BeginTime = this.dataManager.GetDateTimeFromSysDateTime().Date.AddDays(-7);
            this.EndTime   = this.dataManager.GetDateTimeFromSysDateTime().Date.AddDays(1);
        }
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns>成功返回1 失败返回-1</returns>
        protected int Init()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant consManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            ArrayList alProduce = consManager.QueryCompany("0");

            if (alProduce == null)
            {
                MessageBox.Show(Language.Msg("获取生产厂家列表发生错误" + consManager.Err));
                return(-1);
            }
            this.produceHelper = new Neusoft.FrameWork.Public.ObjectHelper(alProduce);

            this.privDept = ((Neusoft.HISFC.Models.Base.Employee)consManager.Operator).Dept;

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = managerIntegrate.GetDeptmentAllValid();

            this.deptHelpre = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            this.InitDataSet();

            DateTime sysTime = consManager.GetDateTimeFromSysDateTime();

            this.dtpEnd.Value   = sysTime.Date.AddDays(1);
            this.dtpBegin.Value = sysTime.Date.AddDays(-7);

            this.tvPatient.ImageList = this.tvPatient.deptImageList;

            return(1);
        }
Ejemplo n.º 3
0
        //protected override void OnLoad()
        //{
        //    this.Init();

        //    base.OnLoad();
        //}
        /// <summary>
        /// 供货公司treeview
        /// </summary>
        /// <returns></returns>
        protected override int OnDrawTree()
        {
            if (this.tvLeft == null)
            {
                return(-1);
            }
            Neusoft.HISFC.BizLogic.Pharmacy.Constant pha = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();

            ArrayList deptList = pha.QueryCompany("1");

            if (deptList == null)
            {
                return(-1);
            }
            TreeNode parentTreeNode = new TreeNode("所有公司");

            this.tvLeft.Nodes.Add(parentTreeNode);

            foreach (Neusoft.HISFC.Models.Pharmacy.Company dept in deptList)
            {
                TreeNode deptNode = new TreeNode();
                deptNode.Tag  = dept.ID;
                deptNode.Text = dept.Name;
                parentTreeNode.Nodes.Add(deptNode);
            }
            parentTreeNode.ExpandAll();

            return(base.OnDrawTree());
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        protected void Init()
        {
            ArrayList al = new ArrayList();

            #region 银行

            Neusoft.HISFC.BizLogic.Manager.Constant constantManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            al = constantManager.GetList("BANK");
            if (al == null)
            {
                MessageBox.Show(Language.Msg("获取银行列表失败" + constantManager.Err));
                return;
            }
            bankHelper.ArrayObject = al;

            #endregion

            #region 人员

            Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person();
            al = personManager.GetEmployeeAll();
            if (al == null)
            {
                MessageBox.Show(Language.Msg("获取所有人员列表" + personManager.Err));
                return;
            }
            this.personHelper.ArrayObject = al;

            #endregion

            #region 供货单位

            Neusoft.HISFC.BizLogic.Pharmacy.Constant constant = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            this.alCompany = constant.QueryCompany("1");
            if (this.alCompany == null)
            {
                MessageBox.Show(constant.Err);
                return;
            }
            //{49390DE5-B54F-4b15-A012-208CDF288FF5}  可选择全部供货公司 增加银行列表选择功能
            Neusoft.HISFC.Models.Pharmacy.Company rootCompany = new Neusoft.HISFC.Models.Pharmacy.Company();
            rootCompany.ID   = "AAAA";
            rootCompany.Name = "全部供货公司";

            this.alCompany.Insert(0, rootCompany);

            this.companyHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alCompany);

            #endregion

            Neusoft.FrameWork.Management.DataBaseManger dataBaseManager = new Neusoft.FrameWork.Management.DataBaseManger();
            DateTime sysTime = dataBaseManager.GetDateTimeFromSysDateTime().Date.AddDays(1);
            this.dtBegin = sysTime.AddDays(-30);
            this.dtEnd   = sysTime;

            this.privOper = dataBaseManager.Operator;

            this.payFlag = "'0','1'";
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 初始化
        /// </summary>
        public virtual void Init()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant phaConsManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            this.alCompany = phaConsManager.QueryCompany("1");
            if (this.alCompany == null)
            {
                MessageBox.Show(Language.Msg("获取供货公司列表发生错误") + phaConsManager.Err);
                return;
            }

            this.neuSpread1_Sheet1.Columns[0].Locked = true;
            this.neuSpread1_Sheet1.Columns[2].Locked = true;
        }
Ejemplo n.º 6
0
        private void ucPhaInQuit_Load(object sender, EventArgs e)
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("加载数据中,请稍候……");
            ArrayList alCompany = phaConsManager.QueryCompany("1", true);

            if (alCompany == null)
            {
                MessageBox.Show("获取供应商信息出错" + phaConsManager.Err, "错误信息");
                Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                return;
            }
            cmbSelect.AddItems(alCompany);
            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
        }
Ejemplo n.º 7
0
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant phaConsManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            this.alCompany = phaConsManager.QueryCompany("1");
            if (this.alCompany == null)
            {
                MessageBox.Show("获取供货单位列表发生错误");
                return;
            }

            this.companyHerlper = new Neusoft.FrameWork.Public.ObjectHelper(this.alCompany);

            this.deptInfo = ((Neusoft.HISFC.Models.Base.Employee)phaConsManager.Operator).Dept;
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void init()
        {
            #region 加载科室下拉框
            deptArry   = new ArrayList();
            deptYKArry = new ArrayList();
            deptArry   = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
            deptYKArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);
            if (deptYKArry != null)
            {
                foreach (Neusoft.HISFC.Models.Base.Department deptObj in deptYKArry)
                {
                    deptArry.Add(deptYKArry);
                }
            }
            this.cmbDept.AddItems(deptArry);
            #endregion

            #region 加载药品性质
            constArry = new ArrayList();
            constArry = constManager.GetAllList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);
            this.cmbDrugQuality.AddItems(constArry);
            #endregion

            #region 加载药品名称
            drugArry = new ArrayList();
            itemList = new List <Neusoft.HISFC.Models.Pharmacy.Item>();
            itemList = itemManager.QueryItemList();
            if (itemList != null)
            {
                foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in itemList)
                {
                    drugArry.Add(itemObj);
                }

                this.cmbDrug.AddItems(drugArry);
            }
            #endregion

            #region 供货单位
            companyArry = new ArrayList();
            companyArry = phaConstManager.QueryCompany("1");
            if (constArry != null)
            {
                this.cmbCompany.AddItems(companyArry);
            }
            #endregion
        }
Ejemplo n.º 9
0
        /// <summary>
        /// 初始化
        /// </summary>
        public virtual void Init()
        {
            if (!isInit)
            {
                this.ucDrugList1.ShowPharmacyList();    //加载药品列表

                Neusoft.HISFC.BizLogic.Manager.Constant consManager   = new Neusoft.HISFC.BizLogic.Manager.Constant();
                System.Collections.ArrayList            alInvoiceType = consManager.GetList("InvoiceType");

                this.cmbInvoiceType.AddItems(alInvoiceType);

                Neusoft.HISFC.BizLogic.Pharmacy.Constant phaCons   = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
                System.Collections.ArrayList             alProduce = phaCons.QueryCompany("0");
                this.cmbProduce.AddItems(alProduce);

                isInit = true;                          //已进行了初始化
            }
        }
Ejemplo n.º 10
0
        protected override void OnLoad(EventArgs e)
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载数据 请稍候...");
            Application.DoEvents();

            Neusoft.HISFC.BizLogic.Pharmacy.Item itemManagment = new Neusoft.HISFC.BizLogic.Pharmacy.Item();

            List <Neusoft.HISFC.Models.Pharmacy.Item> itemDictionary = itemManagment.QueryItemAvailableList();

            //sdh 20190107 显示通用名
            foreach (Neusoft.HISFC.Models.Pharmacy.Item it1 in itemDictionary)
            {
                it1.Name = it1.NameCollection.RegularName;
                it1.Memo = it1.Specs;

                it1.SpellCode = it1.NameCollection.RegularSpell.SpellCode;
                it1.WBCode    = it1.NameCollection.RegularSpell.WBCode;
                it1.UserCode  = it1.NameCollection.RegularSpell.UserCode;
            }

            if (itemDictionary == null)
            {
                MessageBox.Show("加载药品列表发生错误" + itemManagment.Err);
                return;
            }

            //this.cmbDrug.AddItems(new System.Collections.ArrayList(itemDictionary.ToArray()));

            foreach (Neusoft.HISFC.Models.Pharmacy.Item info in itemDictionary)
            {
                this.hsDrug.Add(info.ID, info);
            }

            this.ucDrugList1.ShowPharmacyList();
            //this.ucDrugList1.ShowPharmacyList(false);  是否显示协定处方
            this.ucDrugList1.SetFormat(null, new int[] { 10, 170, 90, 20, 60, 170, 90, 20, 20, 20, 20, 170 }, null);
            this.ucDrugList1.ChooseDataEvent += new Neusoft.HISFC.Components.Common.Controls.ucDrugList.ChooseDataHandler(ucDrugList1_ChooseDataEvent);

            Neusoft.HISFC.BizLogic.Pharmacy.Constant phaCons = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();

            ArrayList alProduce = phaCons.QueryCompany("0");

            if (alProduce == null)
            {
                MessageBox.Show("加载生产厂家列表发生错误" + phaCons.Err);
                return;
            }
            foreach (Neusoft.HISFC.Models.Pharmacy.Company compyInfo in alProduce)
            {
                this.hsProduce.Add(compyInfo.ID, compyInfo.Name);
            }

            Neusoft.HISFC.BizLogic.Manager.Department deptManagment = new Neusoft.HISFC.BizLogic.Manager.Department();
            ArrayList alDept = deptManagment.GetDeptmentAll();

            if (alDept == null)
            {
                MessageBox.Show("加载科室列表发生错误" + phaCons.Err);
                return;
            }
            foreach (Neusoft.HISFC.Models.Base.Department deptInfo in alDept)
            {
                this.hsDept.Add(deptInfo.ID, deptInfo.Name);
            }

            Neusoft.HISFC.BizLogic.Manager.Constant consManagment = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alDosage = consManagment.GetList("DOSAGEFORM");

            if (alDosage == null)
            {
                MessageBox.Show("加载剂型列表发生错误" + consManagment.Err);
                return;
            }
            this.dosageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDosage);

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

            base.OnLoad(e);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void init()
        {
            #region 加载科室
            this.cmbDept.Items.Clear();
            this.deptArry = new ArrayList();
            deptArry      = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);//加载所有的药库科室
            if (deptArry != null)
            {
                this.cmbDept.AddItems(deptArry);
            }
            #endregion

            #region 加载供货商
            this.cmbCompany.Items.Clear();
            this.companyArry = new ArrayList();
            companyArry      = phaConstManager.QueryCompany("1");//加载所有供货公司
            if (companyArry != null)
            {
                this.cmbCompany.AddItems(companyArry);
            }
            #endregion

            #region 加载药品性质
            this.cmbDrugQulity.Items.Clear();
            this.drugQulityArry = new ArrayList();
            drugQulityArry      = constManager.GetAllList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);
            if (drugQulityArry != null)
            {
                this.cmbDrugQulity.AddItems(drugQulityArry);
            }
            #endregion

            #region 加载排序类型
            this.cmbSorted.Items.Clear();
            //this.cmbSorted.Items.Add("数量");
            //this.cmbSorted.Items.Add("购入金额");
            //this.cmbSorted.Items.Add("零售金额");
            ArrayList al = new ArrayList();
            al.Add(new Neusoft.FrameWork.Models.NeuObject("0", "数量", "根据数量排序"));
            al.Add(new Neusoft.FrameWork.Models.NeuObject("1", "购入金额", "根据购入金额排序"));
            al.Add(new Neusoft.FrameWork.Models.NeuObject("2", "零售金额", "根据零售金额排序"));
            this.cmbSorted.AddItems(al);

            this.cmbSorted.SelectedIndex = 0;
            #endregion

            #region 加载药品名称
            this.cmbDrug.Items.Clear();
            this.drugList.Clear();
            this.drugArry = new ArrayList();
            this.drugList = phaItemManager.QueryItemList();
            if (drugList != null)
            {
                foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in drugList)
                {
                    drugArry.Add(itemObj);
                }

                this.cmbDrug.AddItems(drugArry);
            }
            #endregion
        }