Пример #1
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();
        }
Пример #2
0
        protected override int OnDrawTree()
        {
            if (tvLeft == null)
            {
                return(-1);
            }
            ArrayList deptList = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);

            TreeNode parentTreeNode = new TreeNode("全部");

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

            //deptList = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
            //foreach (Neusoft.HISFC.Models.Base.Department dept in deptList)
            //{
            //    TreeNode deptNode = new TreeNode();
            //    deptNode.Tag = dept.ID;
            //    deptNode.Text = dept.Name;
            //    parentTreeNode.Nodes.Add(deptNode);
            //}

            parentTreeNode.ExpandAll();

            return(base.OnDrawTree());
        }
Пример #3
0
        private void InitDrugStores()
        {
            ArrayList al = new ArrayList();

            al = inteManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
            this.cmbOutDept.AddItems(al);
        }
Пример #4
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            Neusoft.FrameWork.Management.DataBaseManger dataManager = new DataBaseManger();

            Neusoft.FrameWork.Models.NeuObject class2Priv = new Neusoft.FrameWork.Models.NeuObject();
            class2Priv.ID   = "0310";
            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();
            }

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

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

            this.GetInterface();
        }
Пример #5
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);
 }
        protected override void OnLoad()
        {
            base.OnLoad();

            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList constantList          = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            Neusoft.HISFC.Models.Base.Department top = new Neusoft.HISFC.Models.Base.Department();
            top.ID   = "ALL";
            top.Name = "È«²¿";
            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[this.neuComboBox1.SelectedIndex]).ID;
                deptname = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[this.neuComboBox1.SelectedIndex]).Name;
            }
        }
Пример #7
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;
            }
        }
Пример #8
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        protected virtual void Init()
        {
            #region 帮助类初始化

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = managerIntegrate.GetDepartment();
            if (alDept == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载科室列表发生错误"));
                return;
            }

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

            ArrayList alTerminal = this.drugStoreManager.QueryDrugTerminalByTerminalType("0");
            if (alTerminal == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载发药终端列表发生错误") + drugStoreManager.Err);
                return;
            }

            this.terminalHelper = new Neusoft.FrameWork.Public.ObjectHelper(alTerminal);

            ArrayList alPerson = managerIntegrate.QueryEmployeeAll();
            if (alPerson == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载人员列表发生错误"));
                return;
            }

            this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPerson);

            #endregion

            this.tvList.ImageList = this.tvList.groupImageList;

            this.approveDept = ((Neusoft.HISFC.Models.Base.Employee) this.drugStoreManager.Operator).Dept;
            this.operInfo    = this.drugStoreManager.Operator;

            this.ucClinicDrug1.ApproveDept = this.approveDept;

            ArrayList sendTerminalList = this.drugStoreManager.QueryDrugTerminalByDeptCode(this.approveDept.ID, "0");
            if (sendTerminalList != null)
            {
                this.terinalList = new List <Neusoft.HISFC.Models.Pharmacy.DrugTerminal>();
                foreach (Neusoft.HISFC.Models.Pharmacy.DrugTerminal info in sendTerminalList)
                {
                    info.Dept.Name = this.approveDept.Name;
                    this.terinalList.Add(info);
                }
            }

            this.TerminalList = this.terinalList;
            this.cmbTerminal.AddItems(sendTerminalList);

            this.ucClinicDrug1.OperInfo = this.operInfo;
            this.ucClinicDrug1.funModle = OutpatientFun.DirectSend;
            this.ucClinicDrug1.Init();
        }
Пример #9
0
 private void ucPhaDrugstoresDm_Load(object sender, EventArgs e)
 {
     Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("加载数据中,请稍候……");
     Application.DoEvents();
     this.cmbDrugQua.AddItems(inteManager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY));
     this.cmbDrugName.AddItems(inteManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P));
     Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
 }
Пример #10
0
        protected override int OnDrawTree()
        {
            if (tvLeft == null)
            {
                return(-1);
            }
            ArrayList deptList = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);

            TreeNode parentTreeNode = new TreeNode("ËùÓÐÒ©·¿Ò©¿â");

            parentTreeNode.Tag = "ALL";
            tvLeft.Nodes.Add(parentTreeNode);

            TreeNode childTreeNode = new TreeNode("Ò©¿â");

            childTreeNode.Tag = "PI";
            parentTreeNode.Nodes.Add(childTreeNode);

            foreach (Neusoft.HISFC.Models.Base.Department dept in deptList)
            {
                TreeNode deptNode = new TreeNode();
                deptNode.Tag  = dept.ID;
                deptNode.Text = dept.Name;
                childTreeNode.Nodes.Add(deptNode);
            }

            deptList = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);

            childTreeNode     = new TreeNode("Ò©·¿");
            childTreeNode.Tag = "P";
            parentTreeNode.Nodes.Add(childTreeNode);

            foreach (Neusoft.HISFC.Models.Base.Department dept in deptList)
            {
                TreeNode deptNode = new TreeNode();
                deptNode.Tag  = dept.ID;
                deptNode.Text = dept.Name;
                childTreeNode.Nodes.Add(deptNode);
            }

            parentTreeNode.ExpandAll();

            return(base.OnDrawTree());
        }
Пример #11
0
        protected override void OnLoad()
        {
            base.OnLoad();
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList constantList          = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            Neusoft.HISFC.Models.Base.Department top = new Neusoft.HISFC.Models.Base.Department();
            top.ID   = "ALL";
            top.Name = "全  部";
            this.neuComboBox3.Items.Add(top);
            foreach (Neusoft.HISFC.Models.Base.Department con in constantList)
            {
                neuComboBox3.Items.Add(con);
            }
            this.neuComboBox3.alItems.Add(top);
            this.neuComboBox3.alItems.AddRange(constantList);
            if (neuComboBox3.Items.Count > 0)
            {
                neuComboBox3.SelectedIndex = 0;
                deptCode = ((Neusoft.HISFC.Models.Base.Department)neuComboBox3.Items[this.neuComboBox3.SelectedIndex]).ID;
                deptName = ((Neusoft.HISFC.Models.Base.Department)neuComboBox3.Items[this.neuComboBox3.SelectedIndex]).Name;
            }

            Neusoft.HISFC.Models.Base.Const cons = new Neusoft.HISFC.Models.Base.Const();
            cons.ID   = "ALL";
            cons.Name = "全  部";
            this.neuComboBox2.Items.Add(cons);
            constantList = manager.GetConstantList("ITEMMINFEECODE");
            foreach (Neusoft.HISFC.Models.Base.Const con in constantList)
            {
                neuComboBox2.Items.Add(con);
            }
            if (neuComboBox2.Items.Count >= 0)
            {
                neuComboBox2.SelectedIndex = 0;
                feeCode = ((Neusoft.HISFC.Models.Base.Const)neuComboBox2.Items[0]).ID;
                feeName = ((Neusoft.HISFC.Models.Base.Const)neuComboBox2.Items[0]).Name;
            }

            System.Collections.ArrayList    al   = new System.Collections.ArrayList();
            Neusoft.HISFC.Models.Base.Const conn = new Neusoft.HISFC.Models.Base.Const();
            conn.ID   = "1";
            conn.Name = "门  诊";
            this.neuComboBox1.Items.Add(conn);
            conn.ID   = "2";
            conn.Name = "住  院";
            this.neuComboBox1.Items.Add(conn);
            conn.ID   = "ALL";
            conn.Name = "全 部";
            this.neuComboBox1.Items.Add(conn);
            if (neuComboBox1.Items.Count >= 0)
            {
                neuComboBox1.SelectedIndex = 0;
                feeType = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).ID;
            }
        }
Пример #12
0
        /// <summary>
        /// 初始化基本数据
        /// </summary>
        private void InitConstant( )
        {
            //获取药品简单信息列表
            Neusoft.HISFC.BizLogic.Pharmacy.Item item = new Neusoft.HISFC.BizLogic.Pharmacy.Item( );

            List <Neusoft.HISFC.Models.Pharmacy.Item> alDrug = item.QueryItemAvailableList( );

            if (alDrug == null)
            {
                MessageBox.Show(item.Err);
                return;
            }
            else //转换成ArrayList
            {
                this.drugItemList = new ArrayList(alDrug.ToArray( ));
            }

            //获取科室信息列表
            this.deptList = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.C);
            if (deptList == null)
            {
                MessageBox.Show(manager.Err);
                return;
            }

            //获取结算类别
            //this.feeItemList = manager.GetConstantList( Neusoft.HISFC.Models.Base.EnumConstant.PACTUNIT );
            Neusoft.HISFC.BizProcess.Integrate.Fee feeIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Fee();
            this.feeItemList = feeIntegrate.QueryPactUnitAll();
            if (feeItemList == null)
            {
                MessageBox.Show(feeIntegrate.Err);
                return;
            }

            //获取人员列表
            ArrayList al = manager.QueryEmployeeAll( );

            if (al == null)
            {
                MessageBox.Show(manager.Err);
                return;
            }
            this.personHelper.ArrayObject = al;

            //获取挂号级别(暂时屏蔽)
            //Neusoft.HISFC.BizLogic.Registration.RegLevel regLevelManager = new Neusoft.HISFC.BizLogic.Registration.RegLevel( );
            //this.regLevelList = regLevelManager.Query( );
            //if( this.regLevelList == null )
            //{
            //    MessageBox.Show( "获取挂号级别出错" + regLevelManager.Err );
            //    return -1;
            //}

            return;
        }
 /// <summary>
 /// 初始化控件
 /// </summary>
 private void InitControl()
 {
     try
     {
         ArrayList al = new ArrayList();
         al = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);
         this.cmbNewDept.AddItems(al);
     }
     catch { }
 }
Пример #14
0
 private void ucPhaInDetail_Load(object sender, EventArgs e)
 {
     Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("加载数据中,请稍候……");
     Application.DoEvents();
     this.cmbQuality.AddItems(inteManager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY));
     this.cmbInDept.AddItems(inteManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P));
     this.cmbOper.AddItems(inteManager.QueryEmployeeByDeptID(empl.Dept.ID));
     this.cmbDrug.AddItems(new ArrayList(itemPhaManager.QueryItemList()));
     Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
 }
Пример #15
0
        /// <summary>
        /// 重写画树方法,构建所有库存科室列表
        /// </summary>
        /// <returns></returns>
        protected override int OnDrawTree()
        {
            if (this.tvLeft == null)
            {
                return(-1);
            }

            //不支持排序
            this.isSort = false;

            try
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
                ArrayList deptList = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);
                deptList.AddRange(manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P));

                TreeNode root = new TreeNode("所有库存科室");
                root.Tag = "ROOT";

                TreeNode node;
                Neusoft.HISFC.Models.Base.Department dept;
                foreach (Object obj in deptList)
                {
                    dept      = obj as Neusoft.HISFC.Models.Base.Department;
                    node      = new TreeNode();
                    node.Text = dept.Name;
                    node.Tag  = dept.ID;
                    root.Nodes.Add(node);
                }

                this.tvLeft.Nodes.Add(root);
                root.ExpandAll();
                //this.cmbQuery.alItems = deptList;

                return(1);
            }
            catch (Exception ex)
            {
                MessageBox.Show("初始数据发生异常\n" + ex.Message, "提示");
                return(-1);
            }
        }
Пример #16
0
        /// <summary>
        /// 初始化科室信息
        /// </summary>
        /// <returns>成功 1 失败 -1</returns>
        //{7376038F-EFE8-46c8-BA63-3147C6EF67F0}
        private int InitDept()
        {
            ArrayList depts = managerIntegrate.GetDepartment();

            if (depts == null)
            {
                MessageBox.Show(Language.Msg("加载科室信息出错!") + this.managerIntegrate.Err);
                return(-1);
            }
            this.cmbDept.AddItems(depts);
            return(1);
        }
Пример #17
0
        /// <summary>
        /// 刷新所有组套列表
        /// </summary>
        protected void RefreshGroupAll()
        {
            this.Nodes.Clear();
            TreeNode rootNode = new TreeNode("全院组套");

            rootNode.ImageIndex         = 0;
            rootNode.SelectedImageIndex = 1;
            this.Nodes.Add(rootNode);
            ArrayList al = groupManager.GetAllOrderGroup(inpatientType);

            AllGroup = al;
            if (al == null)
            {
                return;
            }

            ArrayList alDepts = new ArrayList();

            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList al1 = manager.GetDepartment();

            for (int i = 0; i < al1.Count; i++)
            {
                Neusoft.HISFC.Models.Base.Department obj = al1[i] as Neusoft.HISFC.Models.Base.Department;

                if (this.myType == enuType.Order)
                {
                    if (obj.DeptType.ID.ToString() == "I")
                    {
                        alDepts.Add(obj);
                    }
                }
                else if (this.myType == enuType.Fee)
                {
                    if (obj.DeptType.ID.ToString() == "N" || obj.DeptType.ToString() == "F")
                    {
                        alDepts.Add(obj);
                    }
                }
                else if (this.myType == enuType.Terminal)
                {
                    if (obj.DeptType.ID.ToString() == "T")
                    {
                        alDepts.Add(obj);
                    }
                }
            }

            addDept(rootNode, alDepts);
            addPerson();
            addNodes(al);
            this.Nodes[0].Expand();
        }
        private void ucDrugStoreScarpOutPut_Load(object sender, EventArgs e)
        {
            this.neuTextBox2.ReadOnly = true;
            this.neuTextBox3.ReadOnly = true;
            //Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            //System.Collections.ArrayList constangList = manager.QueryEmployeeAll();
            //Neusoft.HISFC.Models.Base.Employee top = new Neusoft.HISFC.Models.Base.Employee();
            //top.ID = "ALL";
            //top.Name = "全部";
            //top.SpellCode = "QB";
            //top.WBCode = "WU";
            ////this.neuComboBox1.Items.Add(top);
            //constangList.Insert(0, top);
            //this.neuOper.AddItems(constangList);
            //if (neuOper.Items.Count > 0)
            //{
            //    neuOper.SelectedIndex = 0;
            //    emplCode = neuOper.SelectedItem.ID;
            //    emplName = neuOper.SelectedItem.Name;
            //}

            ///<summary>
            /// 初始化科室
            ///<summary>

            Neusoft.FrameWork.Models.NeuObject         obj = new Neusoft.FrameWork.Models.NeuObject();
            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            obj.ID   = "ALL";
            obj.Name = "全部";
            alDept.Add(obj);

            ArrayList dept = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);

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

            this.neuDept.AddItems(alDept);
            this.neuDept.SelectedIndex = 0;
        }
Пример #19
0
        protected override void OnLoad()
        {
            ///<summary>
            /// 初始化科室
            ///<summary>

            Neusoft.FrameWork.Models.NeuObject         obj = new Neusoft.FrameWork.Models.NeuObject();
            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            obj.ID   = "ALL";
            obj.Name = "全部";
            alDept.Add(obj);

            ArrayList dept = managerIntegrate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);

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

            this.neuDept.AddItems(alDept);
            this.neuDept.SelectedIndex = 0;


            base.OnLoad();
        }
Пример #20
0
        private int SetNurseStation()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager department = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList alDepartment             = department.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);

            if (alDepartment.Count == 0 || alDepartment == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取护理站失败"));
                return(-1);
            }

            this.cbNurse.AddItems(alDepartment);
            return(1);
        }
Пример #21
0
 /// <summary>
 /// load
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ucOrderExeQuery_Load(object sender, EventArgs e)
 {
     Neusoft.HISFC.BizProcess.Integrate.Manager integrateManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
     this.myDeptList = integrateManager.GetDepartment();
     if (this.myDeptList == null)
     {
         MessageBox.Show(integrateManager.Err);
         return;
     }
     this.myOrderTypeList = integrateManager.QueryOrderTypeList();
     if (this.myOrderTypeList == null)
     {
         MessageBox.Show(integrateManager.Err);
         return;
     }
 }
        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 constantList          = manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            Neusoft.HISFC.Models.Base.Department top = new Neusoft.HISFC.Models.Base.Department();
            top.ID   = "ALL";
            top.Name = "È«  ²¿";

            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[this.neuComboBox1.SelectedIndex]).ID;
                deptname = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[this.neuComboBox1.SelectedIndex]).Name;
            }

            Neusoft.HISFC.Models.Base.Const cons = new Neusoft.HISFC.Models.Base.Const();
            cons.ID   = "ALL";
            cons.Name = "È«²¿";
            this.neuComboBox2.Items.Add(cons);
            constantList = manager.GetConstantList("ITEMMINFEECODE");

            foreach (Neusoft.HISFC.Models.Base.Const con in constantList)
            {
                neuComboBox2.Items.Add(con);
            }
            if (neuComboBox2.Items.Count >= 0)
            {
                neuComboBox2.SelectedIndex = 0;
                reportCode = ((Neusoft.HISFC.Models.Base.Const)neuComboBox2.Items[0]).ID;
                reportName = ((Neusoft.HISFC.Models.Base.Const)neuComboBox2.Items[0]).Name;
            }
        }
Пример #23
0
        private void SetCmb()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager m = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList al      = m.GetDepartment();
            string    strAll  = "all";
            string    strName = "全部";


            if (al == null)
            {
                return;
            }
            Neusoft.HISFC.Models.Base.Department deptO = new Neusoft.HISFC.Models.Base.Department();
            deptO.ID   = strAll;
            deptO.Name = strName;
            al.Add(deptO);
            this.neuComboBox1.AddItems(al);
        }
Пример #24
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        /// <returns></returns>
        private int InitControl()
        {
            //初始化担保类型
            ArrayList alSuretyType = Neusoft.HISFC.Models.Fee.SuretyTypeEnumService.List();

            this.cmbSuretyType.AddItems(alSuretyType);

            this.suretyWayHelper.ArrayObject = alSuretyType;

            //支付方式
            ArrayList alPayWay = this.managerIntegrate.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PAYMODES);

            this.payWayHelper.ArrayObject = alPayWay;

            //初始化担保人
            ArrayList alPerson = this.personMgr.GetEmployeeAll();

            if (alPerson == null)
            {
                MessageBox.Show("查询人员信息失败" + this.personMgr.Err);
                return(1);
            }

            //初始化科室
            ArrayList alDept = managerIntegrate.GetDepartment();

            if (alDept == null)
            {
                MessageBox.Show("查询科室信息失败" + this.personMgr.Err);
                return(1);
            }

            this.deptHelper.ArrayObject = alDept;


            this.cmbSurePerson.AddItems(alPerson);

            ArrayList alBackList = this.managerIntegrate.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.BANK);

            this.bankHelper.ArrayObject = alBackList;
            this.InitInterface();

            return(1);
        }
Пример #25
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitControl()
        {
            try
            {
                ArrayList al = Neusoft.HISFC.Models.Base.SexEnumService.List();
                this.cmbNewDept.AddItems(manager.QueryDeptmentsInHos(true));
                // this.cmbNewDept.Text = "";
                //{F0BF027A-9C8A-4bb7-AA23-26A5F3539586}
                this.cmbNewNurse.AddItems(manager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N));
                #region add by xuewj 2010-10-12 {971F1A22-E5E3-4d6e-B087-9EE98CB4D3A7} 转科时病区不可以选择
                this.cmbNewNurse.Enabled = false;
                #endregion

                #region add by xuewj 2010-10-19 临床路径接口 {10962AE3-C0B9-4cf7-91B6-CA956C1AFC2D}
                this.InitInterface();
                #endregion
            }
            catch { }
        }
Пример #26
0
        /// <summary>
        /// 列表显示
        /// </summary>
        /// <returns></returns>
        public int RefreshTree()
        {
            Neusoft.HISFC.BizProcess.Integrate.Order   orderManager   = new Neusoft.HISFC.BizProcess.Integrate.Order();
            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager    = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.BizProcess.Integrate.RADT    patientManager = new Neusoft.HISFC.BizProcess.Integrate.RADT();
            if (string.IsNullOrEmpty(operDept))
            {
                operDept = oper.Dept.ID;
            }
            ArrayList alDept = orderManager.QueryPatientDeptByConfirmDeptID(operDept);

            this.Nodes.Clear();

            System.Windows.Forms.TreeNode deptNode = new System.Windows.Forms.TreeNode();

            foreach (Neusoft.FrameWork.Models.NeuObject dept in alDept)
            {
                deptNode = new System.Windows.Forms.TreeNode();

                deptNode.Text               = this.deptHelper.GetName(dept.ID);
                deptNode.ImageIndex         = 0;
                deptNode.SelectedImageIndex = 1;
                deptNode.Tag = deptManager.GetDepartment(dept.ID);

                this.Nodes.Add(deptNode);

                ArrayList alPatient = orderManager.QueryPatientByConfirmDeptAndPatDept(operDept, dept.ID);
                foreach (Neusoft.FrameWork.Models.NeuObject patient in alPatient)
                {
                    System.Windows.Forms.TreeNode         patientNode = new System.Windows.Forms.TreeNode();
                    Neusoft.HISFC.Models.RADT.PatientInfo patientInfo = patientManager.QueryPatientInfoByInpatientNO(patient.ID);
                    patientNode.Text               = patientInfo.Name;
                    patientNode.ImageIndex         = 6;
                    patientNode.SelectedImageIndex = 7;
                    patientNode.Tag = patientInfo;

                    deptNode.Nodes.Add(patientNode);
                }
            }

            return(1);
        }
Пример #27
0
        protected override void OnLoad()
        {
            base.OnLoad();

            ArrayList deptList = new ArrayList();
            ArrayList doctList = new ArrayList();
            ArrayList pactList = new ArrayList();

            Neusoft.HISFC.BizProcess.Integrate.Manager mg        = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.BizLogic.Manager.Constant    conManger = new Neusoft.HISFC.BizLogic.Manager.Constant();
            deptList = mg.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);
            doctList = mg.QueryEmployeeAll();
            pactList = conManger.GetAllList("PACTUNIT");

            this.cmbDept.AddItems(deptList);
            this.cmbDoct.AddItems(doctList);
            this.cmbOper.AddItems(doctList);
            this.cmbSuery.AddItems(doctList);
            this.cmbPactType.AddItems(pactList);
        }
Пример #28
0
        private void InitTree()
        {
            this.tvPatientList1.Nodes.Clear();

            TreeNode root = new TreeNode("护士站");

            this.tvPatientList1.Nodes.Add(root);

            //获的护士站列表
            this.alNurse = cDept.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);
            if (alNurse != null)
            {
                foreach (Neusoft.FrameWork.Models.NeuObject obj in alNurse)
                {
                    TreeNode node = new TreeNode(obj.Name);
                    node.Tag = obj;
                    root.Nodes.Add(node);
                }
            }
            root.Expand();
        }
Пример #29
0
        private void ucDept_Load(object sender, EventArgs e)
        {
            this.InitTree();

            //得到挂号科室
            Neusoft.HISFC.BizProcess.Integrate.Manager deptMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            al = deptMgr.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.C);

            if (al == null)
            {
                al = new ArrayList();
            }
            this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 0, al);

            foreach (Neusoft.HISFC.Models.Base.Department dept in al)
            {
                htDept.Add(dept.ID, dept.Name);
            }
            this.fpEnter1.KeyEnter += new Neusoft.HISFC.Components.Nurse.Base.FpEnter.keyDown(fpEnter1_KeyEnter);
            this.fpEnter1.SetItem  += new Neusoft.HISFC.Components.Nurse.Base.FpEnter.setItem(fpSpread1_SetItem);
        }
Пример #30
0
        /// <summary>
        /// 初始化终端科室树
        /// </summary>
        private void InitDeptTree()
        {
            TreeNode parentNode = new TreeNode("终端科室");

            this.tvDept.Nodes.Add(parentNode);
            ArrayList al = new ArrayList();

            al = inteManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.T);
            if (al == null || al.Count == 0)
            {
                return;
            }
            foreach (Neusoft.HISFC.Models.Base.Department dept in al)
            {
                TreeNode node = new TreeNode();
                node.Tag  = dept.ID;
                node.Text = dept.Name;
                parentNode.Nodes.Add(node);
            }
            this.tvDept.ExpandAll();
        }