コード例 #1
0
        /// <summary>
        /// 初始化树型列表
        /// </summary>
        /// <returns></returns>
        protected int InitDeptTree()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            if (this.isShowNurseCell)
            {
                ArrayList alNurse = deptManager.GetDeptmentIn(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);
                if (alNurse == null)
                {
                    MessageBox.Show(Language.Msg("显示病区列表发生错误"));
                    return(-1);
                }

                return(this.AddDataToTree(alNurse));
            }
            else
            {
                ArrayList alDept = deptManager.GetDeptmentIn(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);
                if (alDept == null)
                {
                    MessageBox.Show(Language.Msg("显示科室列表发生错误"));
                    return(-1);
                }

                return(this.AddDataToTree(alDept));
            }
        }
コード例 #2
0
        /// <summary>
        /// 加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucFinIpbOutPatientReport_Load(object sender, EventArgs e)
        {
            DateTime nowTime = this.inpatientManager.GetDateTimeFromSysDateTime();



            this.dtpEndTime.Value   = new DateTime(nowTime.Year, nowTime.Month, nowTime.Day, 23, 59, 59);
            this.dtpBeginTime.Value = new DateTime(nowTime.Year, nowTime.Month, nowTime.Day, 00, 00, 00);


            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            alPersonconstantList = manager.QueryEmployeeAll();
            Neusoft.HISFC.Models.Base.Employee allPerson = new Neusoft.HISFC.Models.Base.Employee();
            allPerson.ID        = "ALL";
            allPerson.Name      = "全部";
            allPerson.SpellCode = "QB";

            alPersonconstantList.Insert(0, allPerson);
            this.cboPersonCode.AddItems(alPersonconstantList);
            cboPersonCode.SelectedIndex = 0;

            this.InitPact();

            this.InitBalanceType();
        }
コード例 #3
0
        protected override void OnLoad()
        {
            this.isAcross = true;
            this.isSort   = false;
            this.Init();
            base.OnLoad();
            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager doctMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList al = doctMgr.QueryRegDepartment();
            al = doctMgr.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);
            //this.cmbDoct.AddItems(al);
            Neusoft.HISFC.Models.Base.Employee top = new Neusoft.HISFC.Models.Base.Employee();
            top.ID        = "0";
            top.Name      = "全  部";
            top.SpellCode = "QB";
            top.WBCode    = "WU";
            this.neuComboBox1.Items.Add(top);
            foreach (Neusoft.HISFC.Models.Base.Employee con in al)
            {
                neuComboBox1.Items.Add(con);
            }
            this.neuComboBox1.alItems.Add(top);
            this.neuComboBox1.alItems.AddRange(al);

            if (neuComboBox1.Items.Count > 0)
            {
                neuComboBox1.SelectedIndex = 0;
                doctCode = ((Neusoft.HISFC.Models.Base.Employee)neuComboBox1.Items[0]).ID;
                doctName = ((Neusoft.HISFC.Models.Base.Employee)neuComboBox1.Items[0]).Name;
            }
        }
コード例 #4
0
        /// <summary>
        /// 生成门诊科室树
        /// </summary>
        private void InitDept()
        {
            this.treeView1.Nodes.Clear();
            TreeNode parent = new TreeNode("出诊科室");

            this.treeView1.ImageList  = this.treeView1.deptImageList;
            parent.ImageIndex         = 5;
            parent.SelectedImageIndex = 5;
            this.treeView1.Nodes.Add(parent);

            Neusoft.HISFC.BizProcess.Integrate.Manager Mgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList al = Mgr.QueryRegDepartment();

            if (al == null)
            {
                MessageBox.Show("获取科室列表时出错!" + Mgr.Err, "提示");
                return;
            }

            foreach (Neusoft.HISFC.Models.Base.Department dept in al)
            {
                TreeNode node = new TreeNode();
                node.Text               = dept.Name;
                node.ImageIndex         = 0;
                node.SelectedImageIndex = 1;
                node.Tag = dept;

                parent.Nodes.Add(node);
            }

            this.cmbDept.AddItems(al);
            parent.ExpandAll();
        }
コード例 #5
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void InitData()
        {
            // 加载科室
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.Models.Base.Department       temp    = new Neusoft.HISFC.Models.Base.Department();

            temp.ID   = "AAAA";
            temp.Name = "全院";
            alDept    = manager.GetDepartment();
            if (alDept == null)
            {
                MessageBox.Show(Language.Msg("获得全院科室列表出错!") + manager.Err);
                return;
            }
            alDept.Insert(0, temp);

            objHelper.ArrayObject = alDept;
            // 加载药品剂型
            alDosageMode = manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DOSAGEFORM);
            if (alDosageMode == null)
            {
                MessageBox.Show(Language.Msg("获取药品剂型出错!") + manager.Err);
                return;
            }

            this.InitControlParam();
        }
コード例 #6
0
        /// <summary>
        /// ³õʼ»¯
        /// </summary>
        protected override void OnLoad()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList list = manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);

            Neusoft.HISFC.Models.Base.Const obj = new Neusoft.HISFC.Models.Base.Const();
            obj.ID        = "ALL";
            obj.Name      = "È«²¿";
            obj.SpellCode = "QB";
            obj.WBCode    = "WU";
            list.Add(obj);
            this.neuComboBox1.Items.Add(obj);
            foreach (Neusoft.HISFC.Models.Base.Const con in list)
            {
                neuComboBox1.Items.Add(con);
            }

            this.neuComboBox1.alItems.Add(obj);
            this.neuComboBox1.alItems.AddRange(list);

            if (neuComboBox1.Items.Count > 0)
            {
                neuComboBox1.SelectedIndex = 0;
                drugqualcode = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).ID;
                drugqualname = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).Name;
            }
        }
コード例 #7
0
        protected override void OnLoad()
        {
            this.isAcross = true;
            this.isSort   = false;
            this.Init();
            base.OnLoad();

            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList arraylist             = manager.GetConstantList("FEECODESTAT");

            //Neusoft.HISFC.Models.Base.Const depart = new Neusoft.HISFC.Models.Base.Const();
            //depart.ID = "ALL";
            //depart.Name = "È«¡¡²¿";
            //this.neuComboBox1.Items.Add(depart);

            foreach (Neusoft.HISFC.Models.Base.Const con in arraylist)
            {
                this.neuComboBox1.Items.Add(con);
            }
            if (neuComboBox1.Items.Count > 0)
            {
                this.neuComboBox1.SelectedIndex = 0;
                reportCode = ((Neusoft.HISFC.Models.Base.Const) this.neuComboBox1.Items[this.neuComboBox1.SelectedIndex]).ID;
                reportName = ((Neusoft.HISFC.Models.Base.Const) this.neuComboBox1.Items[this.neuComboBox1.SelectedIndex]).Name;
            }
        }
コード例 #8
0
        protected virtual void InitComboBox()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager interMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = interMgr.GetDepartment();

            this.cmbDept.AddItems(alDept);
        }
コード例 #9
0
        //public int BeginHorizontalBlankWidth
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public int BeginVerticalBlankHeight
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public ArrayList Components
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public Size ControlSize
        //{
        //    get { throw new Exception("The method or operation is not implemented."); }
        //}

        //public object ControlValue
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        Neusoft.FrameWork.Public.ObjectHelper NoonListHelper = new Neusoft.FrameWork.Public.ObjectHelper();
        //        Neusoft.HISFC.BizProcess.Integrate.Manager managerMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
        //        ArrayList NoonList = managerMgr.GetConstantList("NOON");
        //        NoonListHelper.ArrayObject = NoonList;
        //        //Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department();
        //        Neusoft.HISFC.BizProcess.Integrate.Fee undrugztMgr = new Neusoft.HISFC.BizProcess.Integrate.Fee();
        //        //Neusoft.HISFC.BizLogic.Manager.Person ps = new Neusoft.HISFC.BizLogic.Manager.Person();
        //        //Neusoft.HISFC.Models.Base.Employee dd = managerMgr.GetPersonByID(terminalMgr.Operator.ID);
        //        //Neusoft.HISFC.Models.Base.Department dep = managerMgr.GetDeptmentById(dd.Dept.ID);
        //        Neusoft.HISFC.Models.Terminal.MedTechBookApply objRegister = value as Neusoft.HISFC.Models.Terminal.MedTechBookApply;
        //        label4.Text = objRegister.MedTechBookInfo.BookID;// 预约单号
        //        label8.Text = objRegister.ItemList.Name; //姓名
        //        label10.Text = objRegister.MedTechBookInfo.BookTime.Year + "年" + objRegister.MedTechBookInfo.BookTime.Month + "月" + objRegister.MedTechBookInfo.BookTime.Day + "日" + NoonListHelper.GetName(objRegister.Noon.ID); //执行时间
        //        label12.Text = objRegister.ItemList.ExecOper.Dept.Name;//执行地点
        //        label18.Text = "项目:" + objRegister.ItemList.Item.Name.PadLeft(20, ' '); //检查项目

        //        #region  查询信息的注意事项
        //        Neusoft.HISFC.Models.Fee.Item.Undrug itemObj = undrugztMgr.GetUndrugByCode(objRegister.ItemList.Item.ID);
        //        if (itemObj != null && itemObj.Notice != "")
        //        {
        //            objRegister.Memo = itemObj.Notice;
        //        }

        //        #endregion

        //        richTextBox1.Text = objRegister.Memo;
        //        label11.Text = objRegister.ItemList.Patient.PID.CardNO;
        //    }
        //}

        //public int HorizontalBlankWidth
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public int HorizontalNum
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public bool IsCanExtend
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public bool IsShowGrid
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public int VerticalBlankHeight
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        //public int VerticalNum
        //{
        //    get
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //    set
        //    {
        //        throw new Exception("The method or operation is not implemented.");
        //    }
        //}

        #endregion

        #region IBookingPring 成员

        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        void IBookingPrint.SetValue(Neusoft.HISFC.Models.Terminal.MedTechBookApply obj)
        {
            Neusoft.FrameWork.Public.ObjectHelper      NoonListHelper = new Neusoft.FrameWork.Public.ObjectHelper();
            Neusoft.HISFC.BizProcess.Integrate.Manager managerMgr     = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList NoonList = managerMgr.GetConstantList("NOON");

            NoonListHelper.ArrayObject = NoonList;
            Neusoft.HISFC.BizProcess.Integrate.Fee         undrugztMgr = new Neusoft.HISFC.BizProcess.Integrate.Fee();
            Neusoft.HISFC.Models.Terminal.MedTechBookApply objRegister = obj as Neusoft.HISFC.Models.Terminal.MedTechBookApply;
            label4.Text  = objRegister.MedTechBookInfo.BookID;                                                                                                                                                                // 预约单号
            label8.Text  = objRegister.ItemList.Patient.Name;                                                                                                                                                                 //姓名
            label10.Text = objRegister.MedTechBookInfo.BookTime.Year + "年" + objRegister.MedTechBookInfo.BookTime.Month + "月" + objRegister.MedTechBookInfo.BookTime.Day + "日" + NoonListHelper.GetName(objRegister.Noon.ID); //执行时间
            label12.Text = objRegister.ItemList.ExecOper.Dept.Name;                                                                                                                                                           //执行地点
            label18.Text = "项目:" + objRegister.ItemList.Item.Name.PadLeft(20, ' ');                                                                                                                                           //检查项目

            #region  查询信息的注意事项
            Neusoft.HISFC.Models.Fee.Item.Undrug itemObj = undrugztMgr.GetUndrugByCode(objRegister.ItemList.Item.ID);
            if (itemObj != null && itemObj.Notice != "")
            {
                objRegister.Memo = itemObj.Notice;
            }

            #endregion

            richTextBox1.Text = objRegister.Memo;
            label11.Text      = objRegister.ItemList.Patient.PID.CardNO;
        }
コード例 #10
0
        /// <summary>
        /// 控件装载事件、控件信息初始化
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            try
            {
                this.InitControlParam();

                this.ucDrugDetail1.IsShowBillPreview = true;

                //取人员数据列表,根据用户录入的人员代码检索姓名
                Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager( );
                //根据属性设置,是否只有药剂师才能核准
                if (this.isPharmaceutistOnly)
                {
                    objectHelper.ArrayObject = manager.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.P);
                }
                else
                {
                    objectHelper.ArrayObject = manager.QueryEmployeeAll( );
                }
                //设置控件初始状态
                this.SetEnabled(false);
            }
            catch
            {
            }
            base.OnLoad(e);
        }
コード例 #11
0
        /// <summary>
        /// 初始化表格

        /// </summary>
        /// <param name="arrayList"></param>
        private void InitSheet(ArrayList arrayList)
        {
            this.SetSheetFormat();

            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.Models.Base.Employee         emp     = new Neusoft.HISFC.Models.Base.Employee();
            Neusoft.HISFC.Models.Base.Department       dept    = new Neusoft.HISFC.Models.Base.Department();

            if (arrayList != null && arrayList.Count > 0)
            {
                foreach (ArrayList al in arrayList)
                {
                    this.neuSpread1_Sheet1.AddRows(this.neuSpread1_Sheet1.RowCount, 1);
                    this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 1].Text = al[1].ToString();//申请单号

                    emp = manager.GetEmployeeInfo(al[2].ToString());
                    if (emp != null && !string.IsNullOrEmpty(emp.ID))
                    {
                        this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 2].Text = emp.Name;
                    }

                    dept = manager.GetDepartment(al[3].ToString());
                    if (dept != null && !string.IsNullOrEmpty(dept.ID))
                    {
                        this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 3].Text = dept.Name;
                    }
                    this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 4].Text = al[4].ToString();
                    this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 5].Text = al[5].ToString();
                    this.neuSpread1_Sheet1.Cells[this.neuSpread1_Sheet1.RowCount - 1, 6].Text = al[6].ToString();
                    //主键
                    this.neuSpread1_Sheet1.Rows[this.neuSpread1_Sheet1.RowCount - 1].Tag = al;
                }
                this.neuSpread1_Sheet1.Columns[1, this.neuSpread1_Sheet1.ColumnCount - 1].Locked = true;
            }
        }
コード例 #12
0
        protected override void OnLoad()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager doctMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList al = new ArrayList();

            //医生
            al = doctMgr.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);

            Neusoft.HISFC.Models.Base.Employee top = new Neusoft.HISFC.Models.Base.Employee();
            top.ID        = "ALL";
            top.Name      = "全  部";
            top.SpellCode = "QB";
            top.WBCode    = "WU";
            this.cmbDoc.Items.Add(top);

            foreach (Neusoft.HISFC.Models.Base.Employee con in al)
            {
                cmbDoc.Items.Add(con);
            }
            this.cmbDoc.alItems.Add(top);
            this.cmbDoc.alItems.AddRange(al);

            if (cmbDoc.Items.Count > 0)
            {
                cmbDoc.SelectedIndex = 0;
                doctCode             = ((Neusoft.HISFC.Models.Base.Employee)cmbDoc.Items[0]).ID;
            }
            base.OnLoad();
        }
コード例 #13
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.FrameWork.Management.DataBaseManger dataBaseManager = new Neusoft.FrameWork.Management.DataBaseManger();

            if (this.isOtherDrugDept)
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager integrateManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                System.Collections.ArrayList       al   = integrateManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
                Neusoft.FrameWork.Models.NeuObject info = new Neusoft.FrameWork.Models.NeuObject();
                if (Neusoft.FrameWork.WinForms.Classes.Function.ChooseItem(al, ref info) == 0)
                {
                    return;
                }
                else
                {
                    this.OperDept = info;
                }
            }
            else
            {
                this.OperDept = ((Neusoft.HISFC.Models.Base.Employee)dataBaseManager.Operator).Dept;
            }

            this.OperInfo    = dataBaseManager.Operator;
            this.ApproveDept = ((Neusoft.HISFC.Models.Base.Employee)dataBaseManager.Operator).Dept;

            if (this.InitTerminal() == -1)
            {
                return;
            }

            this.InitControlParm();
        }
コード例 #14
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void init()
        {
            this.dateBegin.Value = this.regMgr.GetDateTimeFromSysDateTime().Date;
            this.dateEnd.Value   = this.dateBegin.Value;

            //挂号科室
            Neusoft.HISFC.BizProcess.Integrate.Manager deptMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList al = deptMgr.QueryRegDepartment();

            if (al == null)
            {
                al = new ArrayList();
            }

            this.cmbDept.AddItems(al);

            //挂号医生
            al = deptMgr.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);
            if (al == null)
            {
                al = new ArrayList();
            }

            this.cmbDoct.AddItems(al);

            //操作员
            al = deptMgr.QueryEmployeeAll();
            if (al == null)
            {
                al = new ArrayList();
            }

            this.cmbOper.AddItems(al);
        }
コード例 #15
0
ファイル: ucQueue.cs プロジェクト: ewin66/Management-System
        private void Init()
        {
            if (this.myMgr == null)
            {
                this.myMgr = new Neusoft.HISFC.BizProcess.Integrate.Registration.Registration();
            }
            al = this.myMgr.Query();
            foreach (Neusoft.HISFC.Models.Registration.Noon noon in al)
            {
                this.htNoon.Add(noon.ID, noon.Name);
            }

            if (this.personMgr == null)
            {
                this.personMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            }
            //得到医生列表
            al = new ArrayList();
            al = this.personMgr.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);
            foreach (Neusoft.HISFC.Models.Base.Employee person in al)
            {
                this.htDoct.Add(person.ID, person.Name);
            }
            this.btnRefresh.Text = "刷 新";
            this.btnRefresh.Tag  = "REF";
            this.SetFP();
            this.dtDate.Value = this.myQueue.GetDateTimeFromSysDateTime();
        }
コード例 #16
0
        protected override void OnLoad()
        {
            this.Init();

            base.OnLoad();
            //设置时间范围
            DateTime now = DateTime.Now;
            DateTime dt  = new DateTime(DateTime.Now.Year, 1, 1);

            this.dtpBeginTime.Value = dt;

            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            constantList = manager.QueryEmployeeAll();


            Neusoft.HISFC.Models.Base.Employee allPerson = new Neusoft.HISFC.Models.Base.Employee();
            allPerson.ID        = "%%";
            allPerson.Name      = "全部";
            allPerson.SpellCode = "QB";
            //cboPersonCode.Items.Insert(0, allPerson);
            constantList.Insert(0, allPerson);
            this.cboPersonCode.AddItems(constantList);
            cboPersonCode.SelectedIndex = 0;
        }
コード例 #17
0
        private void Init()
        {
            ArrayList al = new ArrayList();

            if (this.myMgr == null)
            {
                this.myMgr = new Neusoft.HISFC.BizProcess.Integrate.Registration.Registration();
            }
            al = this.myMgr.Query();
            foreach (Neusoft.HISFC.Models.Registration.Noon noon in al)
            {
                this.htNoon.Add(noon.ID, noon.Name);
            }

            if (this.personMgr == null)
            {
                this.personMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            }
            //得到医生列表
            al = new ArrayList();
            al = this.personMgr.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D);
            foreach (Neusoft.HISFC.Models.Base.Employee person in al)
            {
                this.htDoct.Add(person.ID, person.Name);
            }
        }
コード例 #18
0
        private void InitDept()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager DeptMananger = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList al = DeptMananger.QueryRegDepartment();

            this.neuCboDeptList.AddItems(al);
        }
コード例 #19
0
        protected override void OnLoad(EventArgs e)
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager intergrateMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.FrameWork.Models.NeuObject         obj           = new Neusoft.FrameWork.Models.NeuObject();

            obj.ID   = "ALL";
            obj.Name = "全部";
            alDept.Add(obj);

            obj      = new Neusoft.FrameWork.Models.NeuObject();
            obj.ID   = "0";
            obj.Name = "全部部门";
            alDept.Add(obj);

            ArrayList dept = new ArrayList();

            dept = intergrateMgr.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
            alDept.AddRange(dept);

            dept = intergrateMgr.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);
            alDept.AddRange(dept);

            this.neuDept.AddItems(alDept);
            this.neuDept.SelectedIndex = 0;
            deptCode = this.neuDept.SelectedItem.ID;
            deptName = this.neuDept.SelectedItem.Name;

            //{3182F277-6779-4392-914D-C65356F57E19}
            DateTime dt = dbMgr.GetDateTimeFromSysDateTime();

            this.dtpFrom.Value = new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0);
            this.dtpTo.Value   = this.dtpFrom.Value.AddDays(1);

            base.OnLoad(e);
        }
コード例 #20
0
        private void ucLisApply_Load(object sender, EventArgs e)
        {
            try
            {
                if (this.ILisDBInstance != null)
                {
                    if (this.ILisDBInstance.ConnectLisOnLoad() == -1)
                    {
                        MessageBox.Show("连接Lis数据库失败");
                    }
                }

                this.ILisDBInstance = Neusoft.FrameWork.WinForms.Classes.UtilInterface.CreateObject(this.GetType(), typeof(UFC.Lis.ILisDB)) as UFC.Lis.ILisDB;

                DateTime dt  = this.orderManager.GetDateTimeFromSysDateTime();
                DateTime dt1 = new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0);
                DateTime dt2 = new DateTime(dt.AddDays(1).Year, dt.AddDays(1).Month, dt.AddDays(1).Day, 12, 00, 00);
                this.dtpBegin.Value = dt1;
                this.dtpEnd.Value   = dt2;
            }
            catch { }

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(managerIntegrate.GetDepartment());
        }
コード例 #21
0
        protected override void OnLoad()
        {
            this.Init();

            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList consList = manager.GetConstantList("PACTUNIT");

            Neusoft.HISFC.Models.Base.Const all = new Neusoft.HISFC.Models.Base.Const();
            all.ID        = "ALL";
            all.Name      = "È«²¿";
            all.SpellCode = "QB";
            metComboBox1.Items.Add(all);

            foreach (Neusoft.HISFC.Models.Base.Const con in consList)
            {
                metComboBox1.Items.Add(con);
            }
            if (metComboBox1.Items.Count >= 0)
            {
                metComboBox1.SelectedIndex = 0;
                metCode = ((Neusoft.HISFC.Models.Base.Const)metComboBox1.Items[0]).ID;
                metName = ((Neusoft.HISFC.Models.Base.Const)metComboBox1.Items[0]).Name;
            }
            base.OnLoad();
        }
コード例 #22
0
        /// <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);
        }
コード例 #23
0
        protected override void OnLoad()
        {
            base.OnLoad();
            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList constantList          = manager.GetDeptmentAllValid();

            Neusoft.HISFC.Models.Base.Department top = new Neusoft.HISFC.Models.Base.Department();
            top.ID         = "all";
            top.Name       = "全  部";
            top.IsRegDept  = false;
            top.IsStatDept = false;
            top.SpellCode  = "QB";
            top.WBCode     = "WU";


            this.neuComboBox1.Items.Add(top);
            foreach (Neusoft.HISFC.Models.Base.Department con in constantList)
            {
                neuComboBox1.Items.Add(con);
            }
            this.neuComboBox1.alItems.Add(top);
            this.neuComboBox1.alItems.AddRange(constantList);

            if (neuComboBox1.Items.Count > 0)
            {
                neuComboBox1.SelectedIndex = 0;
                deptCode = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[0]).ID;
                deptName = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[0]).Name;
            }
        }
コード例 #24
0
        /// <summary>
        /// 药柜处理
        /// </summary>
        private void SetArkDept(ref Neusoft.FrameWork.Models.NeuObject operDept)
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant   phaConsManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            Neusoft.HISFC.Models.Pharmacy.DeptConstant deptCons       = phaConsManager.QueryDeptConstant(operDept.ID);
            if (deptCons == null)
            {
                MessageBox.Show(Language.Msg("根据科室编码获取科室常数信息发生错误") + phaConsManager.Err);
                return;
            }

            if (deptCons.IsArk)         //对药柜管理科室进行以下处理
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                ArrayList al = managerIntegrate.LoadPhaParentByChildren(operDept.ID);
                if (al == null || al.Count == 0)
                {
                    MessageBox.Show(Language.Msg("获取科室结构信息发生错误") + managerIntegrate.Err);
                    return;
                }

                Neusoft.HISFC.Models.Base.DepartmentStat deptStat = al[0] as Neusoft.HISFC.Models.Base.DepartmentStat;
                if (deptStat.PardepCode.Substring(0, 1) == "S")     //上级节点为分类编码 不进行处理
                {
                    return;
                }
                else
                {
                    operDept.ID   = deptStat.PardepCode;
                    operDept.Name = deptStat.PardepName;
                }
            }
        }
コード例 #25
0
        protected override void OnLoad(EventArgs e)
        {
            if (System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToUpper() != "DEVENV")
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager managerMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                ArrayList alLevelClass = managerMgr.GetConstantList("LEVELCLASS");
                this.cmbItemClass.AddItems(alLevelClass);

                this.cmbInOutType.SelectedValueChanged -= new System.EventHandler(this.cmbInOutType_SelectedIndexChanged);
                ArrayList alInOutType = new ArrayList();
                Neusoft.FrameWork.Models.NeuObject obj1 = new Neusoft.FrameWork.Models.NeuObject("0", "全部", "");
                alInOutType.Add(obj1);
                Neusoft.FrameWork.Models.NeuObject obj2 = new Neusoft.FrameWork.Models.NeuObject("1", "门诊", "");
                alInOutType.Add(obj2);
                Neusoft.FrameWork.Models.NeuObject obj3 = new Neusoft.FrameWork.Models.NeuObject("2", "住院", "");
                alInOutType.Add(obj3);
                this.cmbInOutType.AddItems(alInOutType);
                this.cmbInOutType.Tag = "0";
                this.cmbInOutType.SelectedValueChanged += new System.EventHandler(this.cmbInOutType_SelectedIndexChanged);
                this.ucInputItem1.ShowCategory          = Neusoft.HISFC.Components.Common.Controls.EnumCategoryType.SysClass;
                this.ucInputItem1.ShowItemType          = Neusoft.HISFC.Components.Common.Controls.EnumShowItemType.Pharmacy;
                this.ucInputItem1.Init();
                this.ucInputItem1.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(ucInputItem1_SelectedItem);
                this.tvItemLevel1.AfterSelect  += new TreeViewEventHandler(tvItemLevel1_AfterSelect);
                this.tvItemLevel1.IsEdit        = true;

                this.tvItemLevel1.ShowPlusMinus = true;
            }
        }
コード例 #26
0
        /// <summary>
        /// 初始化控件

        /// </summary>
        private void initControl()
        {
            this.Items.Clear();


            //住院显示部分支付方式。


            try
            {
                //{93E6443C-1FB5-45a7-B89D-F21A92200CF6}
                Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                //this.AddItems(Neusoft.HISFC.Models.Fee.EnumPayTypeService.List());
                ArrayList al    = managerIntegrate.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PAYMODES);
                int       index = 0;
                while (index <= al.Count - 1)
                {
                    if ((al[index] as Neusoft.FrameWork.Models.NeuObject).ID == "YS")
                    {
                        al.RemoveAt(index);
                    }
                    index++;
                }
                this.AddItems(al);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #27
0
ファイル: ucPhaOut.cs プロジェクト: ewin66/Management-System
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.FrameWork.Management.DataBaseManger dataManager = new Neusoft.FrameWork.Management.DataBaseManger();

            Neusoft.FrameWork.Models.NeuObject class2Priv = new Neusoft.FrameWork.Models.NeuObject();
            class2Priv.ID   = "0320";
            class2Priv.Name = "出库";
            this.Class2Priv = class2Priv;       //出库

            //权限科室通过权限获取
            //this.DeptInfo = ((Neusoft.HISFC.Models.Base.Employee)dataManager.Operator).Dept;
            this.OperInfo = dataManager.Operator;

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.Models.Base.Department       dept             = managerIntegrate.GetDepartment(this.DeptInfo.ID);
            if (dept != null)
            {
                this.DeptInfo.Memo = dept.DeptType.ID.ToString();
            }

            this.isStockArk = this.ArkJudge(this.DeptInfo.ID);

            if (this.FilePath == "")
            {
                this.FilePath = @"\Setting\PhaOutSetting.xml";
            }

            if (this.SetPrivType(true) == -1)
            {
                return;
            }

            this.GetInterface();
        }
コード例 #28
0
        public void FillTreeview()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager constant = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList alConstant             = constant.GetConstantList("CASE13");

            TreeNode root = new TreeNode("所有分区");

            this.neuTreeView1.Nodes.Add(root);

            if (alConstant.Count == 0 || alConstant == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取分区失败"));
                return;
            }
            for (int i = 0; i < alConstant.Count; i++)
            {
                Neusoft.HISFC.Models.Base.Const cons = alConstant[i] as Neusoft.HISFC.Models.Base.Const;
                if (cons == null)
                {
                    MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("填充分区失败"));
                    return;
                }
                TreeNode tn = new TreeNode(cons.Name);
                tn.Tag = cons;
                root.Nodes.Add(tn);
            }
        }
コード例 #29
0
        protected override void OnLoad()
        {
            this.Init();

            base.OnLoad();
            //设置时间范围
            DateTime now = DateTime.Now;
            DateTime dt  = new DateTime(DateTime.Now.Year, 1, 1);

            this.dtpBeginTime.Value = dt;

            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList constantList          = manager.GetConstantList("FEECODESTAT");
            foreach (Neusoft.HISFC.Models.Base.Const con in constantList)
            {
                cboReportCode.Items.Add(con);
            }
            if (cboReportCode.Items.Count > 0)
            {
                cboReportCode.SelectedIndex = 0;
                reportCode = ((Neusoft.HISFC.Models.Base.Const)cboReportCode.Items[0]).ID;
                reportName = ((Neusoft.HISFC.Models.Base.Const)cboReportCode.Items[0]).Name;
            }
        }
コード例 #30
0
 private void Init()
 {
     //科室查询条件
     if (this.isHaveDept)
     {
         if (string.IsNullOrEmpty(this.privClass3Code.Trim()))
         {
             Neusoft.HISFC.BizProcess.Integrate.Manager interMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
             ArrayList alDept = interMgr.GetDepartment();
             this.cmbDept.AddItems(alDept);
         }
         else
         {
             Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
             List <Neusoft.FrameWork.Models.NeuObject>  alPrivDept       = managerIntegrate.QueryUserPriv(Neusoft.FrameWork.Management.Connection.Operator.ID, this.privClass3Code.Trim());
             if (alPrivDept != null)
             {
                 this.cmbDept.AddItems(new ArrayList(alPrivDept.ToArray()));
             }
         }
     }
     this.lbDept.Visible  = this.isHaveDept;
     this.cmbDept.Visible = this.isHaveDept;
     //表头
     this.lbTitle.Text = this.title;
     //时间格式
     this.dtpFromDate.CustomFormat = this.dataTiemFromat;
     this.dtpEndDate.CustomFormat  = this.dataTiemFromat;
     this.dtpFromDate.Value        = new DateTime(this.dtpFromDate.Value.Year, this.dtpFromDate.Value.Month, this.dtpFromDate.Value.Day, 0, 0, 0);
     this.dtpEndDate.Value         = new DateTime(this.dtpEndDate.Value.Year, this.dtpEndDate.Value.Month, this.dtpEndDate.Value.Day, 23, 59, 59);
     this.dtpFromDate.Value        = this.dtpEndDate.Value.AddDays(-this.queryDays).AddSeconds(1);
 }