Beispiel #1
0
        /// <summary>
        /// 药品等级、医生职级对照显示
        /// </summary>
        /// <returns></returns>
        internal int ShowDrugDocCompare()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();

            ArrayList al = consManager.GetList("SpeDrugGrade");

            return(this.ShowDrugDocCompare(al));
        }
Beispiel #2
0
 protected void Init()
 {
     Neusoft.HISFC.BizLogic.Manager.Department Dept    = new Neusoft.HISFC.BizLogic.Manager.Department();
     Neusoft.HISFC.BizLogic.Manager.Constant   content = new Neusoft.HISFC.BizLogic.Manager.Constant();
     this.cmbNurse.AddItems(Dept.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N));    //»¤Ê¿Õ¾Áбí
     this.cmdBedGrade.AddItems(content.GetList(Neusoft.HISFC.Models.Base.EnumConstant.BEDGRADE)); //´²Î»µÈ¼¶
     this.cmbBedWeave.AddItems(Neusoft.HISFC.Models.Base.BedRankEnumService.List());              //´²Î»±àÖÆ
     this.cmbBedStatus.AddItems(Neusoft.HISFC.Models.Base.BedStatusEnumService.List());           //´²Î»×´Ì¬
 }
Beispiel #3
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.Material.ComCompany companyManager = new Neusoft.HISFC.BizLogic.Material.ComCompany();

            this.alCompany = companyManager.QueryCompany("1", "A");

            if (this.alCompany == null)
            {
                MessageBox.Show(constantManager.Err);
                return;
            }

            #endregion

            #region 时间

            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'";

            #endregion
        }
Beispiel #4
0
        private void Init()
        {
            //获取所用用法
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            if (this.usageHelper == null)
            {
                ArrayList alUsage = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);
                if (alUsage == null)
                {
                    MessageBox.Show(Language.Msg("获取用法列表出错!"));
                    return;
                }

                ArrayList tempAl = new ArrayList();
                foreach (Neusoft.FrameWork.Models.NeuObject info in alUsage)
                {
                    if (info.Memo != "")
                    {
                        info.Name = info.Memo;
                    }
                    tempAl.Add(info);
                }

                this.usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(tempAl);
            }
            //获取剂型名称
            if (this.dosageHelper == null)
            {
                ArrayList alDosage = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DOSAGEFORM);
                if (alDosage == null)
                {
                    MessageBox.Show(Language.Msg("获取剂型列表出错!"));
                    return;
                }
                ArrayList tempAlD = new ArrayList();
                foreach (Neusoft.FrameWork.Models.NeuObject info in alDosage)
                {
                    //if (info.Memo != "")
                    //    info.Name = info.Memo;
                    tempAlD.Add(info);
                }
                this.dosageHelper = new Neusoft.FrameWork.Public.ObjectHelper(tempAlD);
            }
        }
Beispiel #5
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            this.myOperator = this.invoiceServiceManager.Operator as Neusoft.HISFC.Models.Base.Employee;

            //this.cmbInvoiceType.AddItems(Neusoft.HISFC.Models.Fee.InvoiceTypeEnumService.List());
            Neusoft.HISFC.BizLogic.Manager.Constant myCon = new Neusoft.HISFC.BizLogic.Manager.Constant();
            this.cmbInvoiceType.AddItems(myCon.GetList("GetInvoiceType"));
            this.cmbInvoiceType.SelectedIndex = 0;
            this.QueryInvoice();
        }
        /// <summary>
        /// 获取常数
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        private ArrayList GetConstant(Neusoft.HISFC.Models.Base.EnumConstant type)
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList constList = consManager.GetList(type);

            if (constList == null)
            {
                throw new Neusoft.FrameWork.Exceptions.ReturnNullValueException();
            }
            return(constList);
        }
Beispiel #7
0
 /// <summary>
 /// 初始化
 /// </summary>
 protected void Init()
 {
     Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
     System.Collections.ArrayList            alItemType  = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ITEMTYPE);
     if (alItemType != null)
     {
         this.cmbItemType.AddItems(alItemType);
     }
     //{1DED4697-A590-47b3-B727-92A4AA05D2ED} 设置列表显示时数据锁定
     this.neuSpread1_Sheet1.DefaultStyle.Locked = true;
 }
Beispiel #8
0
        private void myInit()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alItemType = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ITEMTYPE);

            if (alItemType == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取药品类型名称发生错误!") + consManager.Err);
                return;
            }
            this.cmbType.AddItems(alItemType);
        }
Beispiel #9
0
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alUsage = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);

            usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alUsage);

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

            deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);
        }
Beispiel #10
0
        /// <summary>
        /// 初始化Helper类型
        /// </summary>
        private void IniHelper()
        {
            ehSpeciality.ArrayObject = GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.SPECIALITY);  //专业
            ehLevel.ArrayObject      = GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.LEVEL);       //职级
            ehOperate.ArrayObject    = GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.OPERATETYPE); //手术规模
            ehDrugType.ArrayObject   = GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY); //药品性质
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            //ehDrugLevel.ArrayObject = consManager.GetList("DRUGGRADE"); ;//药品等级

            //增加组套权限维护
            //{C0C116F2-E66F-41e7-AA16-8C410196C606}
            ehGroupType.ArrayObject = consManager.GetList("GROUPMANAGER");
        }
        /// <summary>
        /// 设置列下拉列表

        /// </summary>
        private void initList()
        {
            try
            {
                Neusoft.HISFC.BizProcess.Integrate.HealthRecord.HealthRecordBase da = new Neusoft.HISFC.BizProcess.Integrate.HealthRecord.HealthRecordBase();
                Neusoft.HISFC.BizLogic.Manager.Constant con = new Neusoft.HISFC.BizLogic.Manager.Constant();
                this.fpEnter1.SelectNone = true;
                //获取出院诊断类别诊断
                //				diagnoseType = da.GetDiagnoseList();
                diagnoseType = Neusoft.HISFC.Models.HealthRecord.DiagnoseType.SpellList();
                diagnoseTypeHelper.ArrayObject = diagnoseType;
                this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 0, diagnoseType);

                //分期列表
                PeriorList = con.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DIAGPERIOD);
                this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 7, PeriorList);
                PeriorListHelper.ArrayObject = PeriorList;
                //手术操作类型
                OperList = con.GetList(Neusoft.HISFC.Models.Base.EnumConstant.OPERATIONTYPE);
                this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 4, OperList);
                OperListHelper.ArrayObject = OperList;

                //分级列表
                LeveList = con.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DIAGLEVEL);
                this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 8, LeveList);
                LeveListHelper.ArrayObject = LeveList;

                //出院情况列表
                diagOutStateList = con.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ZG);
                this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 3, diagOutStateList);
                diagOutStateListHelper.ArrayObject = diagOutStateList;

                this.fpEnter1.SetWidthAndHeight(200, 200);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #12
0
        public int Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            this.alEmployeeLevel = consManager.GetList("LEVEL");
            if (alEmployeeLevel == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载人员职级列表发生错误"));
                return(-1);
            }
            this.employeeLevelHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alEmployeeLevel);

            this.alDrugGrade = consManager.GetList("DRUGGRADE");
            if (alDrugGrade == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载药品等级职级对照列表发生错误"));
                return(-1);
            }
            this.drugGradeHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugGrade);

            this.ShowDrugDocCompare();

            return(1);
        }
Beispiel #13
0
        private void ucPhaGetTotBill_Load(object sender, EventArgs e)
        {
            Neusoft.FrameWork.Models.NeuObject obj = new Neusoft.FrameWork.Models.NeuObject();
            obj.ID   = "all";
            obj.Name = "全部";

            System.Collections.ArrayList alDrugQuality = new System.Collections.ArrayList();

            alDrugQuality = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);
            alDrugQuality.Insert(0, obj);
            this.cmbQuality.AddItems(alDrugQuality);

            this.cmbQuality.SelectedIndex = 0;
        }
Beispiel #14
0
        private void ucVisitSearch_Load(object sender, EventArgs e)
        {
            #region 加载选择框

            //随访方式
            this.cmbLinkType.AddItems(con.GetList("CASE06"));
            //一般情况
            cmbCircs.AddItems(con.GetList("CASE07"));

            //随访结果
            cmbResult.AddItems(con.GetList("CASE14"));

            #endregion

            if (this.Tag == null)
            {
                return;
            }
            if (this.Tag.ToString() == "ICD10")
            {
                type = ICDTypes.ICD10;
            }
            else if (this.Tag.ToString() == "ICD9")
            {
                type = ICDTypes.ICD9;
            }
            else //if (this.Tag.ToString() == "ICDOperation")
            {
                type = ICDTypes.ICDOperation;
            }

            LoadInfo();

            LoadOutPatientInfo();

            tvIcdList.AfterSelect += tv_AfterSelect;
        }
Beispiel #15
0
        /// <summary>
        /// 从字典表中获取所有的随访方式联系方法等等,用于初始化
        /// </summary>
        /// <param name="constType">常数类型</param>
        /// <returns>返回数组、错误返回null</returns>
        public ArrayList GetVisitConst(string constType)
        {
            this.SetDB(constFunction);

            ArrayList temp = new ArrayList();

            temp = constFunction.GetList(constType);
            if (temp == null)
            {
                this.Err = constFunction.Err;
                return(null);
            }

            return(temp);
        }
        /// <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;                          //已进行了初始化
            }
        }
        /// <summary>
        /// 根据费用来源显示医疗付款方式   ID = pactcode name=pactname memo=付款方式编码
        /// </summary>
        /// <returns></returns>
        private string GetPaykindForCaseFirst(string pactCode)
        {
            ArrayList al = new ArrayList();

            al = con.GetList("PAYMODES");

            if (al.Count > 0)
            {
                foreach (Neusoft.HISFC.Models.Base.Const cons in al)
                {
                    if (pactCode == cons.ID)
                    {
                        return(cons.Memo);
                    }
                }
            }

            return("其他");
        }
Beispiel #18
0
        /// <summary>
        /// 初始化TreeView
        /// </summary>
        private void InitTree()
        {
            if (tree.Nodes.Count > 0)
            {
                tree.Nodes.Clear();
            }
            TreeNode root = new TreeNode();

            root.Text       = "发票类型";
            root.ImageIndex = 2;
            tree.Nodes.Add(root);
            //{6A6FDD3F-ACBB-4ff7-80BC-6AD0FF69360E}
            //ArrayList al = Neusoft.HISFC.Models.Fee.InvoiceTypeEnumService.List();
            Neusoft.HISFC.BizLogic.Manager.Constant myCont = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList al = myCont.GetList("GetInvoiceType");

            if (al == null || al.Count == 0)
            {
                return;
            }
            TreeNode node;

            foreach (NeuObject obj in al)
            {
                //{6A6FDD3F-ACBB-4ff7-80BC-6AD0FF69360E}
                //if (obj.ID == Neusoft.HISFC.Models.Fee.EnumInvoiceType.C.ToString() || obj.ID == Neusoft.HISFC.Models.Fee.EnumInvoiceType.I.ToString())
                if (obj.ID == "C" || obj.ID == "I")
                {
                    node                    = new TreeNode();
                    node.Text               = obj.Name;
                    node.Tag                = obj;
                    node.ImageIndex         = 0;
                    node.SelectedImageIndex = 1;
                    root.Nodes.Add(node);
                }
            }
            this.tree.ExpandAll();
        }
Beispiel #19
0
        public void LoadInfo()
        {
            try
            {
                ArrayList alZG      = new ArrayList();
                ArrayList alDepts   = null; //在院科室
                ArrayList alDoctors = null; //在院医生
                Neusoft.HISFC.BizLogic.Manager.Constant   Constant    = new Neusoft.HISFC.BizLogic.Manager.Constant();
                Neusoft.HISFC.BizLogic.Manager.Person     p           = new Neusoft.HISFC.BizLogic.Manager.Person();
                Neusoft.HISFC.BizLogic.Manager.Department managerDept = new Neusoft.HISFC.BizLogic.Manager.Department();
                //初始化结算方式
                this.payKindCbx.ShowCustomerList = false;
                this.payKindCbx.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.PAYKIND));
                //初始化性别:
                this.sexComboBox.ShowCustomerList = false;
                this.sexComboBox.AddItems(Neusoft.HISFC.Models.Base.SexEnumService.List());
                //初始化婚姻信息:
                this.marryComboBox.ShowCustomerList = false;
                this.marryComboBox.AddItems(Neusoft.HISFC.Models.RADT.MaritalStatusEnumService.List());
                //初始化工作信息:
                this.workComboBox.ShowCustomerList = false;
                this.workComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.PROFESSION));
                //初始化出生地信息:
                this.birthInComboBox.ShowCustomerList = false;
                this.birthInComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.AREA));
                //初始化民族信息
                this.nationComboBox.ShowCustomerList = false;
                this.nationComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.NATION));
                //初始化籍贯信息
                this.districtComboBox.ShowCustomerList = false;
                this.districtComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DIST));
                //初始化与患者关系信息
                this.relationComboBox.ShowCustomerList = false;
                this.relationComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.RELATIVE));
                //初始化入院情况信息
                this.inCircsComboBox.ShowCustomerList = false;
                this.inCircsComboBox.AddItems(Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.INCIRCS));


                alDoctors = p.GetEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);
                //质控医生
                this.QcDocComboBox.AddItems(alDoctors);
                //主任医生
                this.chiefDocComboBox.AddItems(alDoctors);
                //主治医生
                this.chargeDocComboBox.AddItems(alDoctors);
                //住院医生
                this.houseDocComboBox.AddItems(alDoctors);
                //实习医生
                this.refDocComboBox.AddItems(alDoctors);
                //实习
                this.praDocComboBox.AddItems(alDoctors);
                //研究生
                this.graDocComboBox.AddItems(alDoctors);
                //护士
                this.QcNurComboBox.AddItems(p.GetEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.N));
                //操作员
                this.operComboBox.AddItems(p.GetEmployeeAll());

                //转归
                alZG = Constant.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ZG);

                try
                {
                    alDepts = managerDept.GetInHosDepartment();
                }
                catch { MessageBox.Show("获得在院科室出错!"); }

                //转往科室
                inDeptComboBox.AddItems(alDepts);
                this.changeDeptFirstComboBox.AddItems(alDepts);
                this.changeDeptSecondComboBox.AddItems(alDepts);
                this.changeDeptThirdComboBox.AddItems(alDepts);
                this.outDeptComboBox.AddItems(alDepts);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Beispiel #20
0
        protected override void OnLoad()
        {
            base.OnLoad();

            // 药品类别下拉列表
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList allDrugType = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ITEMTYPE);

            if (allDrugType == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取药品类型名称发生错误!") + consManager.Err);
                drugTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper();
                return;
            }

            Neusoft.FrameWork.Models.NeuObject drugTypeObj = new Neusoft.FrameWork.Models.NeuObject();
            drugTypeObj.ID   = "ALL";
            drugTypeObj.Name = "全部";

            allDrugType.Insert(0, drugTypeObj);

            drugTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(allDrugType);

            for (int i = 0; i < allDrugType.Count; i++)
            {
                ncboDrugType.Items.Add(allDrugType[i]);
            }
            ncboDrugType.alItems.AddRange(allDrugType);

            if (ncboDrugType.Items.Count > 0)
            {
                ncboDrugType.SelectedIndex = 0;
                drugTypeName  = ((Neusoft.FrameWork.Models.NeuObject)ncboDrugType.Items[0]).Name;
                drugTypeValue = ((Neusoft.FrameWork.Models.NeuObject)ncboDrugType.Items[0]).ID;
            }

            // 药品性质下拉列表
            ArrayList allQuality = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);

            if (allQuality == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取药品性质发生错误!") + consManager.Err);
                this.qualityHelper = new Neusoft.FrameWork.Public.ObjectHelper();
                return;
            }

            Neusoft.FrameWork.Models.NeuObject qualityObj = new Neusoft.FrameWork.Models.NeuObject();
            qualityObj.ID   = "ALL";
            qualityObj.Name = "全部";

            allQuality.Insert(0, qualityObj);

            this.qualityHelper = new Neusoft.FrameWork.Public.ObjectHelper(allQuality);

            for (int i = 0; i < allQuality.Count; i++)
            {
                ncboDrugQuality.Items.Add(allQuality[i]);
            }
            ncboDrugQuality.alItems.AddRange(allQuality);

            if (ncboDrugQuality.Items.Count > 0)
            {
                ncboDrugQuality.SelectedIndex = 0;
                drugQualityName  = ((Neusoft.FrameWork.Models.NeuObject)ncboDrugQuality.Items[0]).Name;
                drugQualityValue = ((Neusoft.FrameWork.Models.NeuObject)ncboDrugQuality.Items[0]).ID;
            }

            // 供货公司下拉列表
            Neusoft.HISFC.BizLogic.RADT.InPatient Manager       = new Neusoft.HISFC.BizLogic.RADT.InPatient();
            System.Collections.ArrayList          alUsecodeList = new ArrayList();
            this.ncboCompany.alItems.Clear();
            this.ncboCompany.Items.Clear();
            string strSql = @"select fac_code,fac_name,spell_code,wb_code from pha_com_company";

            strSql = string.Format(strSql);
            DataSet ds = new DataSet();

            if (Manager.ExecQuery(strSql, ref ds) == -1)
            {
                //return;
            }
            if (ds == null || ds.Tables[0] == null)
            {
                MessageBox.Show("查询错误", "警告,用法加载错误!");
            }
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    Neusoft.HISFC.Models.Base.Spell obj = new Neusoft.HISFC.Models.Base.Spell();
                    obj.ID        = ds.Tables[0].Rows[i][0].ToString();
                    obj.Name      = ds.Tables[0].Rows[i][1].ToString();
                    obj.SpellCode = ds.Tables[0].Rows[i][2].ToString();
                    obj.WBCode    = ds.Tables[0].Rows[i][3].ToString();
                    alUsecodeList.Add(obj);
                }
            }

            Neusoft.HISFC.Models.Base.Spell obj2 = new Neusoft.HISFC.Models.Base.Spell();
            obj2.ID        = "ALL";
            obj2.Name      = "全部";
            obj2.SpellCode = "QB";
            alUsecodeList.Insert(0, obj2);

            for (int i = 0; i < alUsecodeList.Count; i++)
            {
                ncboCompany.Items.Add(alUsecodeList[i]);
            }

            ncboCompany.alItems.AddRange(alUsecodeList);

            if (ncboCompany.Items.Count > 0)
            {
                ncboCompany.SelectedIndex = 0;
                companyName  = ((Neusoft.HISFC.Models.Base.Spell)ncboCompany.Items[0]).Name;
                companyValue = ((Neusoft.HISFC.Models.Base.Spell)ncboCompany.Items[0]).ID;
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant constMgr = new Neusoft.HISFC.BizLogic.Manager.Constant();

            #region 类别设置

            ArrayList alUnitType = constMgr.GetList("SpeUnitType");
            if (alUnitType == null)
            {
                MessageBox.Show(Language.Msg("获取类别常数列表发生错误" + constMgr.Err));
                return;
            }
            if (alUnitType.Count == 0)
            {
                #region 基础常数 未找到数据时暂时使用该数据

                Neusoft.FrameWork.Models.NeuObject info1 = new Neusoft.FrameWork.Models.NeuObject();
                info1.ID   = "Clinic";
                info1.Name = "门诊发药";
                alUnitType.Add(info1);

                Neusoft.FrameWork.Models.NeuObject info2 = new Neusoft.FrameWork.Models.NeuObject();
                info2.ID   = "Inpatient";
                info2.Name = "住院摆药";
                alUnitType.Add(info2);

                Neusoft.FrameWork.Models.NeuObject info3 = new Neusoft.FrameWork.Models.NeuObject();
                info3.ID   = "InOut";
                info3.Name = "大包装入出库";
                alUnitType.Add(info3);

                #endregion
            }

            string[] strUnitType = new string[alUnitType.Count];
            int      iUnit       = 0;
            foreach (Neusoft.FrameWork.Models.NeuObject unitType in alUnitType)
            {
                strUnitType[iUnit] = unitType.Name;
                iUnit++;
            }

            this.unitTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alUnitType);

            this.cmbUnitCellType.Items = strUnitType;

            FarPoint.Win.Spread.CellType.ComboBoxCellType splitTypeCell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
            splitTypeCell.Items = strUnitType;

            this.neuSpread1_Sheet1.Columns[0].CellType = splitTypeCell;

            #endregion

            #region 获取单位集合

            ArrayList alPackUnit = constMgr.GetList(Neusoft.HISFC.Models.Base.EnumConstant.PACKUNIT);
            if (alPackUnit == null)
            {
                MessageBox.Show(Language.Msg("获取包装单位发生错误" + constMgr.Err));
                return;
            }
            ArrayList alMinUnit = constMgr.GetList(Neusoft.HISFC.Models.Base.EnumConstant.MINUNIT);
            if (alMinUnit == null)
            {
                MessageBox.Show(Language.Msg("获取最小单位发生错误" + constMgr.Err));
                return;
            }

            alPackUnit.AddRange(alMinUnit);

            string[] strUnit = new string[alPackUnit.Count];
            int      i       = 0;
            foreach (Neusoft.HISFC.Models.Base.Const cons in alPackUnit)
            {
                strUnit[i] = cons.Name;
                i++;
            }

            this.cmbUnitCellType.Items = strUnit;
            //特殊单位
            this.neuSpread1_Sheet1.Columns[1].CellType = this.cmbUnitCellType;
            this.neuSpread1_Sheet1.Columns[3].CellType = this.cmbUnitCellType;

            #endregion

            #region 获取药品信息

            List <Neusoft.HISFC.Models.Pharmacy.Item> itemCollection = this.itemManager.QueryItemList(true);
            if (itemCollection == null)
            {
                MessageBox.Show(Language.Msg("获取药品信息发生错误" + this.itemManager.Err));
                return;
            }

            this.alDrugData = new ArrayList(itemCollection.ToArray());

            foreach (Neusoft.HISFC.Models.Pharmacy.Item info in alDrugData)
            {
                info.Memo = info.Specs;
            }

            this.drugDataHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugData);

            #endregion
        }
Beispiel #22
0
        /// <summary>
        /// 初始化
        /// </summary>
        public virtual void Init()
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(Neusoft.FrameWork.Management.Language.Msg("正在加载单据打印基础数据..."));
            Application.DoEvents();

            #region 获取常数信息 用于界面数据显示

            //获得所有频次信息
            Neusoft.HISFC.BizLogic.Manager.Frequency frequencyManagement = new Neusoft.HISFC.BizLogic.Manager.Frequency();
            ArrayList alFrequency = frequencyManagement.GetAll("Root");
            this.frequencyHelper = new Neusoft.FrameWork.Public.ObjectHelper(alFrequency);
            //获取所用用法
            Neusoft.HISFC.BizLogic.Manager.Constant c = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alUsage = c.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);
            if (alUsage == null)
            {
                MessageBox.Show("获取用法列表出错!");
                return;
            }
            this.usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alUsage);

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            //获取所有人员
            ArrayList alEmployee = managerIntegrate.QueryEmployeeAll();
            this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(alEmployee);
            //获取所有科室
            ArrayList alDept = managerIntegrate.GetDepartment();
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            //获取所有门诊终端
            Neusoft.HISFC.BizLogic.Pharmacy.DrugStore drugStoreManager = new Neusoft.HISFC.BizLogic.Pharmacy.DrugStore();
            ArrayList alDruged = drugStoreManager.QueryDrugTerminalByDeptCode(this.OperDept.ID, "0");
            ArrayList alSend   = drugStoreManager.QueryDrugTerminalByDeptCode(this.OperDept.ID, "1");
            alDruged.AddRange(alSend);
            this.terminalHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDruged);

            #endregion

            #region 获取控制参数信息 用于控制调剂参数更新方式

            Neusoft.FrameWork.Management.ExtendParam extManager = new Neusoft.FrameWork.Management.ExtendParam();
            try
            {
                Neusoft.HISFC.Models.Base.ExtendInfo deptExt = extManager.GetComExtInfo(Neusoft.HISFC.Models.Base.EnumExtendClass.DEPT, "AdjustGist", this.OperDept.ID);
                if (deptExt == null)
                {
                    MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取科室扩展属性内配药调剂参数失败!"));
                }

                if (deptExt.StringProperty == "1")              //发药
                {
                    this.isAdjustInDrug = false;
                }
                else
                {
                    this.isAdjustInDrug = true;                 //配药
                }
            }
            catch { }

            #endregion

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

            this.IntiControlParam();
        }
        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);
        }
Beispiel #24
0
        protected override void OnLoad()
        {
            base.OnLoad();
            //设置时间范围
            DateTime now = DateTime.Now;
            DateTime dt  = new DateTime(DateTime.Now.Year, 1, 1);

            this.dtpBeginTime.Value = dt;


            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alItemType = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.ITEMTYPE);

            if (alItemType == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取药品类型名称发生错误!") + consManager.Err);
                itemTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper();
                return;
            }

            Neusoft.FrameWork.Models.NeuObject itemTypeObj = new Neusoft.FrameWork.Models.NeuObject();
            itemTypeObj.ID   = "ALL";
            itemTypeObj.Name = "全部";

            alItemType.Insert(0, itemTypeObj);

            itemTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alItemType);

            this.cmbType.AddItems(alItemType);
            ////////////////////////////////////////////
            ArrayList alQuality = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);

            if (alQuality == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取药品性质发生错误!") + consManager.Err);
                this.qualityHelper = new Neusoft.FrameWork.Public.ObjectHelper();
                return;
            }

            this.qualityNameCollection = new string[alQuality.Count];
            int iIndex = 0;

            foreach (Neusoft.FrameWork.Models.NeuObject qualityInfo in alQuality)
            {
                qualityNameCollection[iIndex] = qualityInfo.Name;
                iIndex++;
            }

            Neusoft.FrameWork.Models.NeuObject qualityObj = new Neusoft.FrameWork.Models.NeuObject();
            qualityObj.ID   = "ALL";
            qualityObj.Name = "全部";

            alQuality.Insert(0, qualityObj);
            this.qualityHelper = new Neusoft.FrameWork.Public.ObjectHelper(alQuality);

            this.cmbQuality.AddItems(alQuality);
            /////////////////////////////////////////////////////////////
            Neusoft.HISFC.BizLogic.Manager.PowerLevelManager levelManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager();
            ArrayList alLevel = levelManager.LoadLevel3ByLevel2("0320");

            if (alLevel == null)
            {
                MessageBox.Show(Language.Msg("根据常数类别获取出库类型名称发生错误!") + consManager.Err);
                this.privTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper();
                return;
            }

            ArrayList alNeuLevel = new ArrayList();

            Neusoft.FrameWork.Models.NeuObject objLevel = null;

            foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in alLevel)
            {
                objLevel = new Neusoft.FrameWork.Models.NeuObject();

                objLevel.ID   = info.Class3Code;
                objLevel.Name = info.Class3Name;

                alNeuLevel.Add(objLevel);
            }

            objLevel = new Neusoft.FrameWork.Models.NeuObject();

            objLevel.ID   = "ALL";
            objLevel.Name = "全部";

            alNeuLevel.Insert(0, objLevel);
            this.cmbPrivType.AddItems(alNeuLevel);
        }
Beispiel #25
0
 /// <summary>
 /// 获取常数列表
 /// </summary>
 /// <returns></returns>
 public ArrayList GetCaseConstant(string str)
 {
     this.SetDB(con);
     return(con.GetList(str));
 }
Beispiel #26
0
 /// <summary>
 /// 初始化控件
 /// </summary>
 private void InitControls()
 {
     ehUsage.ArrayObject = conm.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);
 }