Ejemplo n.º 1
0
        /// <summary>
        /// 基础数据初始化
        /// </summary>
        private void InitData()
        {
            Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            ArrayList alList = consManager.GetAllList(Neusoft.HISFC.Models.Base.EnumConstant.DOSAGEFORM);

            if (alList != null)
            {
                dosageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alList);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// ³õʼ»¯
        /// </summary>
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Item      itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item();
            List <Neusoft.HISFC.Models.Pharmacy.Item> itemList    = itemManager.QueryItemList(true);

            //this.cmbDrug.AddItems(new ArrayList(itemList.ToArray()));


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

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

            #region ¼ÓÔØSql

            this.sql1 = @"
select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ, 
        s.pack_unit µ¥Î»,
       s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë,
     s.DRUG_CODE Ò©Æ·±àÂë, s.valid_state Í£ÓÃ
from  pha_com_baseinfo s
where  s.VALID_STATE = '1'";

//            this.sql1 = @"
//select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ,t.drug_dept_code ¿â´æ¿ÆÊÒ,
//       round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î»,
//       s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë,
//	   t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë,t.valid_state Í£ÓÃ
//from   pha_com_stockinfo t,pha_com_baseinfo s
//where  t.drug_code = s.drug_code";

//            this.sql2 = @"
//select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ,t.drug_dept_code ¿â´æ¿ÆÊÒ,
//       round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î»,
//       s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë,
//	   t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë,t.valid_state Í£ÓÃ
//from   pha_com_stockinfo t,pha_com_baseinfo s
//where  t.drug_code = '{0}'
//and    t.drug_code = s.drug_code";

//            this.sql3 = @"select t.group_code Åú´Î,t.batch_no ÅúºÅ,s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ,
//       round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î»,
//       s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë,
//       t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë
//from   pha_com_storage t,pha_com_baseinfo s
//where  t.drug_code = '{0}'
//and    t.drug_dept_code = '{1}'
//and    t.drug_code = s.drug_code
//";

            #endregion

            this.neuSpread1_Sheet1.DefaultStyle.Locked = true;
            this.neuSpread1_Sheet2.DefaultStyle.Locked = true;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化  外部调用初始化
        /// </summary>
        /// <returns>成功返回1 发生错误返回-1</returns>
        public int Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Department deptMgr = new Neusoft.HISFC.BizLogic.Manager.Department();
            ArrayList al = deptMgr.GetDeptmentAll();

            if (al == null)
            {
                MessageBox.Show(Language.Msg("获取药房列表发生错误" + deptMgr.Err));
                return(-1);
            }
            ArrayList alDept = new ArrayList();

            foreach (Neusoft.HISFC.Models.Base.Department info in al)
            {
                if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI")
                {
                    alDept.Add(info);
                }
            }

            Neusoft.FrameWork.Models.NeuObject deptAll = new Neusoft.FrameWork.Models.NeuObject();
            deptAll.ID   = "AAAA";
            deptAll.Name = "全部";
            alDept.Insert(0, deptAll);

            this.cmbDept.AddItems(alDept);
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            Neusoft.HISFC.BizLogic.Pharmacy.Item      itemMgr  = new Neusoft.HISFC.BizLogic.Pharmacy.Item();
            List <Neusoft.HISFC.Models.Pharmacy.Item> listDrug = itemMgr.QueryItemAvailableList(true);

            if (listDrug == null)
            {
                MessageBox.Show(Language.Msg("获取药品列表发生错误" + itemMgr.Err));
                return(-1);
            }
            ArrayList alDrug = new ArrayList();

            Neusoft.FrameWork.Models.NeuObject drugInfo = new Neusoft.FrameWork.Models.NeuObject();
            foreach (Neusoft.HISFC.Models.Pharmacy.Item info in listDrug)
            {
                drugInfo        = new Neusoft.FrameWork.Models.NeuObject();
                drugInfo.ID     = info.ID;
                drugInfo.Name   = info.Name;
                drugInfo.Memo   = info.Specs;
                drugInfo.User01 = info.MinUnit;

                alDrug.Add(drugInfo);
            }

            this.cmbItem.AddItems(alDrug);
            this.drugHelpter = new Neusoft.FrameWork.Public.ObjectHelper(alDrug);
            return(1);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 初始化
        /// </summary>
        public int Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
            ArrayList alDept = deptManager.GetDeptmentAll();

            if (alDept != null)
            {
                this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);
            }

            return(1);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 初始化函数
        /// </summary>
        public void Init()
        {
            try
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(manager.QueryEmployeeAll());
                this.deptHelper   = new Neusoft.FrameWork.Public.ObjectHelper(manager.QueryDeptmentsInHos(false));

                this.RefrshGroup();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
            System.Collections.ArrayList alDept = deptManager.GetDeptmentAll();
            if (alDept == null)
            {
                MessageBox.Show("获取科室列表发生错误");
                return;
            }

            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);
        }
Ejemplo n.º 8
0
        public override void Init()
        {
            base.Init();

            #region 获取入库权限

            Neusoft.HISFC.BizLogic.Manager.PowerLevelManager myManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager();
            ArrayList inPriv = myManager.LoadLevel3ByLevel2("0310");

            ArrayList alPriv = new ArrayList();
            Neusoft.FrameWork.Models.NeuObject tempInfo = new Neusoft.FrameWork.Models.NeuObject();
            foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in inPriv)
            {
                tempInfo      = new Neusoft.FrameWork.Models.NeuObject();
                tempInfo.ID   = info.Class3Code;
                tempInfo.Name = info.Class3Name;

                alPriv.Add(tempInfo);
            }
            this.inTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPriv);

            #endregion

            #region 获取出库权限

            ArrayList outPriv = myManager.LoadLevel3ByLevel2("0320");

            ArrayList alOutPriv = new ArrayList();
            Neusoft.FrameWork.Models.NeuObject tempOutfo = new Neusoft.FrameWork.Models.NeuObject();
            foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in outPriv)
            {
                tempOutfo      = new Neusoft.FrameWork.Models.NeuObject();
                tempOutfo.ID   = info.Class3Code;
                tempOutfo.Name = info.Class3Name;

                alOutPriv.Add(tempOutfo);
            }
            this.outTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alOutPriv);

            #endregion

            #region 获取科室

            Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
            ArrayList alDept = deptManager.GetDeptmentAll();
            if (alDept != null)
            {
                this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);
            }

            #endregion
        }
        private void addDetail(ArrayList al)
        {
            //操作员
            if (this.objHelper == null)
            {
                this.objHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.interMgr.QueryEmployeeAll());
            }

            foreach (Neusoft.HISFC.Models.Registration.Booking booking in al)
            {
                this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);

                int row = this.fpSpread1_Sheet1.RowCount - 1;

                this.fpSpread1_Sheet1.SetValue(row, 0, booking.PID.CardNO, false);
                this.fpSpread1_Sheet1.SetValue(row, 1, booking.ID, false);
                this.fpSpread1_Sheet1.SetValue(row, 2, booking.Name, false);
                this.fpSpread1_Sheet1.SetValue(row, 3, booking.DoctorInfo.Templet.Dept.Name, false);
                this.fpSpread1_Sheet1.SetValue(row, 4, booking.DoctorInfo.Templet.Doct.Name, false);
                this.fpSpread1_Sheet1.SetValue(row, 5, booking.DoctorInfo.SeeDate.ToString("yyyy-MM-dd"), false);
                this.fpSpread1_Sheet1.SetValue(row, 6, booking.DoctorInfo.Templet.Begin.ToString("HH:mm"), false);
                this.fpSpread1_Sheet1.SetValue(row, 7, booking.DoctorInfo.Templet.End.ToString("HH:mm"), false);
                this.fpSpread1_Sheet1.SetValue(row, 8, booking.IDCard, false);
                this.fpSpread1_Sheet1.SetValue(row, 9, booking.PhoneHome, false);
                this.fpSpread1_Sheet1.SetValue(row, 10, booking.AddressHome, false);
                //				this.fpSpread1_Sheet1.SetValue(row,11,booking.IsSee,false) ;
                //				this.fpSpread1_Sheet1.SetValue(row,12,booking.IsAppend,false) ;

                if (booking.IsSee)
                {
                    this.fpSpread1_Sheet1.SetValue(row, 11, "是", false);
                }
                else
                {
                    this.fpSpread1_Sheet1.SetValue(row, 11, "否", false);
                }

                if (booking.DoctorInfo.Templet.IsAppend)
                {
                    this.fpSpread1_Sheet1.SetValue(row, 12, "是", false);
                }
                else
                {
                    //this.fpSpread1_Sheet1.Rows[row].BackColor = Color.MistyRose;
                    this.fpSpread1_Sheet1.SetValue(row, 12, "否", false);
                }


                this.fpSpread1_Sheet1.SetValue(row, 13, objHelper.GetName(booking.Oper.ID));
                this.fpSpread1_Sheet1.Rows[row].Tag = booking;
            }
        }
Ejemplo n.º 10
0
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
            System.Collections.ArrayList alDept = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            if (alDept == null)
            {
                MessageBox.Show("获取科室列表发生错误");
                return;
            }
            this.cmbDept.AddItems(alDept);
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);
            this.initVi();
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.HISFC.BizProcess.Integrate.Fee      feeIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Fee();
            List <Neusoft.HISFC.Models.Fee.Item.Undrug> undrugList   = feeIntegrate.QueryAllItemsList();

            if (undrugList == null)
            {
                MessageBox.Show(Language.Msg("加载药品列表发生错误!") + feeIntegrate.Err);
                return;
            }

            this.alUnDrugList = new ArrayList(undrugList.ToArray());
            this.undrugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alUnDrugList);
        }
Ejemplo n.º 12
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.º 13
0
        /// <summary>
        /// 科室人员列表
        /// </summary>
        private void LoadDeptEmpl()
        {
            ArrayList depts = departmentManager.GetDeptmentAll();

            DataSet   deptAll = new DataSet();
            DataTable dept    = new DataTable("dept");

            DataColumn[] colDept = { new DataColumn("科室编码"),
                                     new DataColumn("科室名称"),
                                     new DataColumn("人员代码"),
                                     new DataColumn("人员姓名"),
                                     new DataColumn("性别"),
                                     new DataColumn("人员类型"),
                                     new DataColumn("所属护士站") };
            dept.Columns.AddRange(colDept);

            dept.Rows.Clear();

            ArrayList al = personManager.GetEmployeeAll();

            if (al == null)
            {
                return;
            }
            Neusoft.FrameWork.Public.ObjectHelper helper = new Neusoft.FrameWork.Public.ObjectHelper(depts);
            foreach (Neusoft.HISFC.Models.Base.Employee pInfo in al)
            {
                DataRow row = dept.NewRow();

                row["科室编码"] = pInfo.Dept.ID;
                row["科室名称"] = helper.GetName(pInfo.Dept.ID);
                row["人员代码"] = pInfo.ID;
                row["人员姓名"] = pInfo.Name;
                row["性别"]   = pInfo.Sex.Name;
                row["人员类型"] = pInfo.EmployeeType.Name;
                if (pInfo.Nurse.ID != "" || deptsCache.Contains(pInfo.Nurse.ID))
                {
                    row["所属护士站"] = deptsCache[pInfo.Nurse.ID].ToString();
                }
                else
                {
                    row["所属护士站"] = "";
                }

                dept.Rows.Add(row);
            }

            this.neuSpread1_Sheet1.DataSource = dept;
            this.SetColumn("deptEmpl");
        }
Ejemplo n.º 14
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList alDept = deptManager.GetDeptmentAllValid();

            if (alDept == null)
            {
                return;
            }

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

            this.ImageList = this.groupImageList;
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        private void Init()
        {
            Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager deptStatManager = new Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager();
            this.alChooseDept = deptStatManager.LoadChildrenUnionDept(this.statCode, "AAAA");
            if (this.alChooseDept == null)
            {
                MessageBox.Show(Language.Msg("取科室列表错误:" + deptStatManager.Err));
                return;
            }

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            this.deptTypeHelper             = new Neusoft.FrameWork.Public.ObjectHelper();
            this.deptTypeHelper.ArrayObject = this.alChooseDept;
            //{CFC740A1-77C6-4722-A6BF-DCDC94171838} by nxy
            this.SetColumnFormat();
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void init()
        {
            try
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager managerDept = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                ArrayList alDepts = managerDept.QueryDeptmentsInHos(true);
                if (alDepts == null)
                {
                    MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获得在院科室出错"));
                    return;
                }
                helper = new Neusoft.FrameWork.Public.ObjectHelper(alDepts);

                userHelper = new Neusoft.FrameWork.Public.ObjectHelper(managerDept.QueryEmployeeAll());
            }
            catch { }
        }
Ejemplo n.º 17
0
        /// <summary>
        /// 设置患者信息到控件
        /// </summary>
        /// <param name="PatientInfo"></param>

        ///<summary>
        /// 设置患者信息到控件
        /// </summary>
        /// <param name="PatientInfo"></param>
        private void SetPatientInfo(Neusoft.HISFC.Models.Registration.Register patientInfo)
        {
            //this.txtPatientNo.Text = patientInfo.PID.PatientNO;		//住院号
            this.txtPatientNo.Text = patientInfo.ID;
            this.txtCard.Text      = patientInfo.PID.CardNO;                       //门诊卡号
            this.txtPatientNo.Tag  = patientInfo.ID;                               //住院流水号
            this.txtName.Text      = patientInfo.Name;                             //姓名
            this.txtSex.Text       = patientInfo.Sex.Name;                         //性别
            this.txtIndate.Text    = patientInfo.PVisit.InTime.ToString();         //入院日期
            this.txtDept.Text      = patientInfo.PVisit.PatientLocation.Dept.Name; //科室名称
            this.txtDept.Tag       = patientInfo.PVisit.PatientLocation.Dept.ID;   //科室编码

            Neusoft.FrameWork.Public.ObjectHelper helper = new Neusoft.FrameWork.Public.ObjectHelper(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PAYKIND));
            this.txtBalKind.Text = helper.GetName(patientInfo.Pact.PayKind.ID);
            this.txtBedNo.Text   = patientInfo.PVisit.PatientLocation.Bed.ID;   //床号
            this.dtOutDate.Value = patientInfo.PVisit.OutTime;                  //出院日期
        }
Ejemplo n.º 18
0
        /// <summary>
        /// 初始化
        /// </summary>
        protected virtual void Init()
        {
            if (deptHelper == null)
            {
                Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
                ArrayList al = deptManager.GetDeptmentAll();
                if (al == null)
                {
                    MessageBox.Show(Language.Msg("获取科室列表发生错误") + deptManager.Err);
                    return;
                }

                this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper();
            }

            this.InitControlParam();
        }
Ejemplo n.º 19
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载基础数据 请稍候...");
            Application.DoEvents();

            Neusoft.HISFC.BizProcess.Integrate.Pharmacy pharmacyIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy();
            List <Neusoft.HISFC.Models.Pharmacy.Item>   phaList           = pharmacyIntegrate.QueryItemList(true);

            if (phaList == null)
            {
                MessageBox.Show(Language.Msg("加载药品列表发生错误!") + pharmacyIntegrate.Err);
                return;
            }
            foreach (Neusoft.HISFC.Models.Pharmacy.Item info in phaList)
            {
                info.Memo = info.Specs;
            }

            this.alDrugList = new ArrayList(phaList.ToArray());
            this.drugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugList);

            Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType markNumCell = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType();
            this.fsStencil_Sheet1.Columns[4].CellType = markNumCell;
            this.fsStencil_Sheet1.Columns[5].CellType = markNumCell;

            this.stencilItemTypeList = Neusoft.HISFC.Models.Preparation.EnumStencilItemTypeService.List();
            string[] strItemType = new string[this.stencilItemTypeList.Count];
            int      i           = 0;

            foreach (Neusoft.FrameWork.Models.NeuObject tempItemType in this.stencilItemTypeList)
            {
                strItemType[i] = tempItemType.Name;
                i++;
            }

            FarPoint.Win.Spread.CellType.ComboBoxCellType itemTypeCombo = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
            itemTypeCombo.Items = strItemType;
            this.fsStencil_Sheet1.Columns[2].CellType = itemTypeCombo;

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

            FarPoint.Win.Spread.InputMap im;
            im = this.fsStencil.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
            im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.None);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitControl()
        {
            constantData = InitDataSet();
            this.fpSpread1_Sheet1.DataSource        = constantData.Tables[0];
            this.fpSpread1_Sheet1.Columns[0].Width  = 40;
            this.fpSpread1_Sheet1.Columns[1].Width  = 60;
            this.fpSpread1_Sheet1.Columns[2].Width  = 80;
            this.fpSpread1_Sheet1.Columns[3].Width  = 80;
            this.fpSpread1_Sheet1.Columns[4].Width  = 40;
            this.fpSpread1_Sheet1.Columns[5].Width  = 100;
            this.fpSpread1_Sheet1.Columns[6].Width  = 80;
            this.fpSpread1_Sheet1.Columns[7].Width  = 80;
            this.fpSpread1_Sheet1.Columns[8].Width  = 40;
            this.fpSpread1_Sheet1.Columns[9].Width  = 40;
            this.fpSpread1_Sheet1.Columns[10].Width = 75;

            helper = new Neusoft.FrameWork.Public.ObjectHelper(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.BEDGRADE));
        }
Ejemplo n.º 21
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.HISFC.BizProcess.Integrate.Pharmacy pharmacyIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy();
            List <Neusoft.HISFC.Models.Pharmacy.Item>   phaList           = pharmacyIntegrate.QueryItemList(true);

            if (phaList == null)
            {
                MessageBox.Show(Language.Msg("加载药品列表发生错误!") + pharmacyIntegrate.Err);
                return;
            }
            foreach (Neusoft.HISFC.Models.Pharmacy.Item info in phaList)
            {
                info.Memo = info.Specs;
            }

            this.alDrugList = new ArrayList(phaList.ToArray());
            this.drugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugList);
        }
Ejemplo n.º 22
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);
            }
        }
Ejemplo n.º 23
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns>成功返回1 发生错误返回-1</returns>
        public int Init()
        {
            Neusoft.HISFC.BizLogic.Manager.Department deptMgr = new Neusoft.HISFC.BizLogic.Manager.Department();
            ArrayList al = deptMgr.GetDeptmentAll();

            if (al == null)
            {
                MessageBox.Show("获取库房列表发生错误" + deptMgr.Err);
                return(-1);
            }
            ArrayList alDept = new ArrayList();

            foreach (Neusoft.HISFC.Models.Base.Department info in al)
            {
                if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI")
                {
                    alDept.Add(info);
                }
            }

            Neusoft.FrameWork.Models.NeuObject deptAll = new Neusoft.FrameWork.Models.NeuObject();
            deptAll.ID   = "AAAA";
            deptAll.Name = "全部";
            alDept.Insert(0, deptAll);

            this.cmbDept.AddItems(alDept);
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            Neusoft.HISFC.BizLogic.Material.MetItem    itemManager = new Neusoft.HISFC.BizLogic.Material.MetItem();
            Neusoft.HISFC.Models.Material.MaterialItem listItem    = itemManager.GetMetItemByValid("1");
            if (listItem == null)
            {
                MessageBox.Show("获取物品列表发生错误" + itemManager.Err);
                return(-1);
            }
            ArrayList alItem = new ArrayList();

            alItem.Add(listItem);
            this.cmbItem.AddItems(alItem);
            this.itemHelper = new Neusoft.FrameWork.Public.ObjectHelper(alItem);
            return(1);
        }
Ejemplo n.º 24
0
        public void ResetPanel()
        {
            ArrayList alUsage = null;

            Neusoft.HISFC.BizProcess.Integrate.Manager f      = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.FrameWork.Public.ObjectHelper      helper = null;
            try
            {
                //系统用法
                alUsage = f.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);
                helper  = new Neusoft.FrameWork.Public.ObjectHelper(alUsage);
            }
            catch
            {
                MessageBox.Show("获得用法出错!");
                return;
            }

            Neusoft.HISFC.Models.Base.Employee empl = Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee;

            ArrayList al = manager.QueryTransFusion(empl.Nurse.ID);

            if (al == null)
            {
                MessageBox.Show("获得输液卡设置出错!");
                return;
            }
            this.neuTabControl1.TabPages.Clear();

            for (int i = 0; i < al.Count; i++)
            {
                TabPage tp = new TabPage(helper.GetName(al[i].ToString()));
                tp.Tag = helper.GetObjectFromID(al[i].ToString());
                Panel p = new Panel();
                p.AutoScroll = true;
                p.Dock       = DockStyle.Fill;
                p.BackColor  = Color.White;
                tp.Controls.Add(p);
                this.neuTabControl1.TabPages.Add(tp);
            }
        }
Ejemplo n.º 25
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        protected void Init()
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载基础查询数据 请稍候...");
            Application.DoEvents();

            Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department();
            System.Collections.ArrayList alDept = deptManager.GetDeptmentAll();
            if (alDept == null)
            {
                Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                MessageBox.Show("加载科室列表失败");
                return;
            }
            System.Collections.ArrayList alData = new System.Collections.ArrayList();
            foreach (Neusoft.HISFC.Models.Base.Department info in alDept)
            {
                if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI")
                {
                    alData.Add(info);
                }
            }
            this.InitItemData(0, Neusoft.HISFC.Components.Pharmacy.Report.CustomItemTypeEnum.Custom, "查询药品:", alData);

            if (this.isShowDrug)
            {
                this.InitItemData(1, Neusoft.HISFC.Components.Pharmacy.Report.CustomItemTypeEnum.Drug, "", null);
                this.ckSingle.Visible = true;
            }
            else
            {
                this.ckSingle.Visible = false;
            }

            Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person();
            System.Collections.ArrayList          alPerson      = personManager.GetEmployeeAll();
            this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPerson);

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
        }
Ejemplo n.º 26
0
        /// <summary>
        ///  初始化DataSet,并与fpStorage_Sheet1绑定
        /// </summary>
        private void InitDataSet()
        {
            //定义类型
            System.Type dtStr  = System.Type.GetType("System.String");
            System.Type dtInt  = System.Type.GetType("System.Int32");
            System.Type dtBool = System.Type.GetType("System.Boolean");
            System.Type dtDate = System.Type.GetType("System.DateTime");

            //设置CellType
            this.dt = new DataTable();

            //在myDataTable中添加列
            this.dt.Columns.AddRange(new DataColumn[] {
                new DataColumn("仓库编码", dtStr),
                new DataColumn("仓库名称", dtStr),
                new DataColumn("拼音码", dtStr),
                new DataColumn("五笔码", dtStr),
                new DataColumn("出库单起始号", dtInt),
                new DataColumn("入库单起始号", dtInt),
                new DataColumn("申请单起始号", dtInt),
                new DataColumn("有无固定资产", dtBool),
                new DataColumn("是否是仓库", dtBool),
                new DataColumn("是否管理库存", dtBool),
                new DataColumn("是否管理批次", dtBool),
                new DataColumn("库存上限天数", dtInt),
                new DataColumn("库存下限天数", dtInt),
                new DataColumn("库存参考天数", dtInt),
                new DataColumn("操作员", dtStr),
                new DataColumn("操作日期", dtDate)
            });

            alDept          = deptManager.GetDeptmentAllOrderByDeptType();
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            this.dv = new DataView(this.dt);
            this.fpStorage.DataSource = this.dv;

            this.SetCellType();
        }
Ejemplo n.º 27
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);
        }
Ejemplo n.º 28
0
        public void SetValue(Neusoft.HISFC.Models.RADT.PatientInfo patientInfo)
        {
            Neusoft.HISFC.Models.RADT.PatientInfo patientInfoTemp = new Neusoft.HISFC.Models.RADT.PatientInfo();
            Neusoft.FrameWork.Public.ObjectHelper deptHelper      = new Neusoft.FrameWork.Public.ObjectHelper();
            Neusoft.FrameWork.Public.ObjectHelper suretyHelper    = new Neusoft.FrameWork.Public.ObjectHelper();
            ArrayList alSuretyType = Neusoft.HISFC.Models.Fee.SuretyTypeEnumService.List();

            suretyHelper.ArrayObject = alSuretyType;
            ArrayList alDept = this.managerIntegrate.GetDepartment();

            deptHelper.ArrayObject = alDept;

            patientInfoTemp = this.radtIntegrate.GetPatientInfomation(patientInfo.ID);


            this.lblInvoiceNO.Text    = patientInfo.Surety.InvoiceNO;
            this.lblname.Text         = patientInfoTemp.Name;
            this.lblPatientNO.Text    = patientInfoTemp.PID.PatientNO;
            this.lblDept.Text         = deptHelper.GetName(patientInfo.PVisit.PatientLocation.Dept.ID);
            this.lblSuretyCost.Text   = patientInfo.Surety.SuretyCost.ToString();
            this.lblSuretyPerson.Text = patientInfo.Surety.SuretyPerson.Name;
            this.lblSuretyType.Text   = suretyHelper.GetName(patientInfo.Surety.SuretyType.ID.ToString());
        }
Ejemplo n.º 29
0
        /// <summary>
        /// {2D052C32-3BA2-4302-B41B-97AC7C8810E7}
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucDayReportManager_Load(object sender, EventArgs e)
        {
            //床位日报明细没有实现,先隐藏掉
            this.neuSpread1_Sheet2.Visible = false;
            //{32357656-B32A-4fcc-BE5D-6FA1789CD5C9} 床位日报审核功能
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.interManager.GetDepartment());
            if (this.deptZone1 == DeptZone.ALL)
            {
                this.neuSpread1_Sheet1.Columns[(int)ColumnSet.ColMemo].Label = "是否结转";
                this.lblInfo.Text = "灰色表示护士站尚未提交,红色表示已经结转。";
            }
            else
            {
                this.lblDept.Visible = false;
                this.cmbDept.Visible = false;
            }
            //住院科室列表
            ArrayList alDeptList = this.interManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            alDeptList.Insert(0, new Neusoft.FrameWork.Models.NeuObject("AAAA", "全部", ""));
            this.cmbDept.AddItems(alDeptList);
            this.cmbDept.Tag = "AAAA";
        }
Ejemplo n.º 30
0
        /// <summary>
        /// 检索已诊患者
        /// </summary>
        /// <param name="state"></param>
        /// <param name="doct"></param>
        private void QueryAlready(string doct)
        {
            //根据医生
            this.lvPatient.Items.Clear();
            this.neuLabel3.Text = "已看诊患者";
            //
            ArrayList al = assignMgr.QueryOrder(assignMgr.GetDateTimeFromSysDateTime().Date,
                                                assignMgr.GetDateTimeFromSysDateTime().Date.AddDays(1), doct);

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

            //
            foreach (Neusoft.HISFC.Models.Registration.Register reginfo in al)
            {
                //----------把不属于本科的过滤掉---------------------------------------------------
                Neusoft.FrameWork.Public.ObjectHelper helpMgr = new Neusoft.FrameWork.Public.ObjectHelper();
                helpMgr.ArrayObject = alDept;
                if (helpMgr.GetObjectFromID(reginfo.SeeDPCD) == null)
                {
                    continue;
                }
                //------------------end------------------------------------------------------------


                if (doct == "ALL")
                {
                    this.AddWaitDetail(reginfo);
                }
                else if (doct == reginfo.SeeDOCD)
                {
                    this.AddWaitDetail(reginfo);
                }
            }
        }