コード例 #1
0
        /// <summary>
        /// 发送医嘱
        /// </summary>
        /// <returns></returns>
        public int ComfirmExec()
        {
            Neusoft.HISFC.Models.Order.ExecOrder order = null;
            usageHelper  = new Neusoft.FrameWork.Public.ObjectHelper(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE));
            dosageHelper = new Neusoft.FrameWork.Public.ObjectHelper(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DOSAGEFORM));

            #region 获得
            List <Neusoft.HISFC.Models.Order.ExecOrder> alExecOrder = new List <Neusoft.HISFC.Models.Order.ExecOrder>();
            for (int i = 0; i < this.fpOrderExecBrowser1.fpSpread.Sheets[0].RowCount; i++)
            {
                if (this.fpOrderExecBrowser1.fpSpread.Sheets[0].Cells[i, this.fpOrderExecBrowser1.ColumnIndexSelection].Text.ToUpper() == "TRUE")
                {
                    order = this.fpOrderExecBrowser1.fpSpread.Sheets[0].Rows[i].Tag as Neusoft.HISFC.Models.Order.ExecOrder;
                    if (order == null)
                    {
                        MessageBox.Show("没查询到医嘱!");
                        return(-1);
                    }
                    try
                    {
                        order.Order.Usage.Name = usageHelper.GetName(order.Order.Usage.ID);
                    }
                    catch
                    {
                        MessageBox.Show("获得用法出错!" + order.Order.Usage.ID);
                        return(-1);
                    }
                    try
                    {
                        ((Neusoft.HISFC.Models.Pharmacy.Item)order.Order.Item).DosageForm.Name = dosageHelper.GetName(((Neusoft.HISFC.Models.Pharmacy.Item)order.Order.Item).DosageForm.ID);
                    }
                    catch
                    {
                        MessageBox.Show("获得药品剂型出错!" + ((Neusoft.HISFC.Models.Pharmacy.Item)order.Order.Item).DosageForm.ID);
                        return(-1);
                    }
                    alExecOrder.Add(order);
                }
            }

            #endregion
            Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();
            //Neusoft.FrameWork.Management.Transaction t = new Neusoft.FrameWork.Management.Transaction(this.orderManager.Connection);
            //t.BeginTransaction();
            orderManagement.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans);
            if (orderManagement.SendDrug(alExecOrder, sendFlag) == -1)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();;
                MessageBox.Show(orderManagement.Err);
            }
            else
            {
                Neusoft.FrameWork.Management.PublicTrans.Commit();
            }
            this.RefreshQuery();
            return(0);
        }
コード例 #2
0
        protected override void OnLoad(EventArgs e)
        {
            //药房名称
            ArrayList list = new ArrayList();

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

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

            list = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
            alDept.AddRange(list);

            cmbDeptName.AddItems(alDept);
            cmbDeptName.SelectedIndex = 0;

            //药品性质
            obj  = new Neusoft.FrameWork.Models.NeuObject();
            list = new ArrayList();

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

            list = manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY);
            alDrugQuality.AddRange(list);
            cmbDrugQua.AddItems(alDrugQuality);
            cmbDrugQua.SelectedIndex = 0;

            base.OnLoad(e);
        }
コード例 #3
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);
            }
        }
コード例 #4
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;
            }
        }
コード例 #5
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;
            }
        }
コード例 #6
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();
        }
コード例 #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 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();
        }
コード例 #9
0
ファイル: ucBank.cs プロジェクト: ewin66/Management-System
 /// <summary>
 /// ucBank窗口load事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ucBank_Load(object sender, System.EventArgs e)
 {
     try
     {
         foreach (Control con in this.Controls)
         {
             con.KeyDown += new KeyEventHandler(con_KeyDown);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
     try
     {
         //添加银行列表
         this.cmbBank.AddItems(managerIntegrate.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.BANK));
         //只能从列表中选择
         this.cmbBank.IsListOnly = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
     this.BackColor = this.Parent.BackColor;
 }
コード例 #10
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;
            }
        }
コード例 #11
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();
            Neusoft.HISFC.Models.Base.Const            cons    = new Neusoft.HISFC.Models.Base.Const();
            cons.ID   = "ALL";
            cons.Name = "È«²¿";
            this.neuComboBox1.Items.Add(cons);
            System.Collections.ArrayList arraylist = manager.GetConstantList("ITEMMINFEECODE");

            foreach (Neusoft.HISFC.Models.Base.Const con in arraylist)
            {
                neuComboBox1.Items.Add(con);
            }
            if (neuComboBox1.Items.Count >= 0)
            {
                neuComboBox1.SelectedIndex = 0;
                reportCode = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).ID;
                reportName = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).Name;
            }
        }
コード例 #12
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);
            }
        }
コード例 #13
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;
        }
コード例 #14
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            try
            {
                if (this.nurseCell != null &&
                    this.nurseCell.ID != null &&
                    this.nurseCell.ID != "")
                {
                    //加载医生,护士列表

                    //根据护士站得到科室信息
                    ArrayList alDepts = manager.QueryDepartment(this.nurseCell.ID);
                    if (alDepts == null)
                    {
                        return;
                    }

                    //取科室中的医生列表
                    ArrayList alDoc = new ArrayList();
                    for (int i = 0; i < alDepts.Count; i++)
                    {
                        alDoc.AddRange(manager.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D, ((Neusoft.FrameWork.Models.NeuObject)alDepts[i]).ID));
                    }

                    //将取得的医生列表添加到医生控件中
                    this.cmbAdmittingDoctor.AddItems(alDoc);
                    this.cmbAttendingDoctor.AddItems(alDoc);
                    this.cmbConsultingDoctor.AddItems(alDoc);
                    this.cmbBedDoctor.AddItems(alDoc);

                    ArrayList alNurse = manager.QueryNurse(this.nurseCell.ID);
                    if (alNurse == null)
                    {
                        return;
                    }

                    //将取得的护士列表添加到医生控件中
                    this.cmbAdmittingNurse.AddItems(alNurse);

                    //加载床位编制列表

                    this.cmbWeave.AddItems(Neusoft.HISFC.Models.Base.BedRankEnumService.List());
                    this.cmbGrade.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.BEDGRADE));
                    this.cmbIsValid.AddItems(InitComboxList());
                    this.cmbIsprepay.AddItems(InitComboxList());


                    //清空数据
                    this.ClearInfo();

                    //显示床位列表
                    this.ShowBedList();

                    #region {5DF40042-300D-49b8-BB8D-4E4E906B7BAF}

                    #endregion
                }
            }
            catch { }
        }
コード例 #15
0
        /// <summary>
        /// 初始化下拉列表
        /// </summary>
        /// <returns></returns>
        protected virtual int Init()
        {
            try
            {
                //性别列表
                this.cmbSex.AddItems(Neusoft.HISFC.Models.Base.SexEnumService.List());
                this.cmbSex.Text = "男";
                //家庭住址信息
                this.cmbHomeAddress.AddItems(managerIntegrate.GetConstantList(EnumConstant.AREA));

                //生日
                this.dtpBirthDay.Value = this.regMgr.GetDateTimeFromSysDateTime();//出生日期
                //开证医生
                this.cmbDoctor.AddItems(managerIntegrate.QueryEmployee(EnumEmployeeType.D));
                //住院科室
                this.cmbDept.AddItems(managerIntegrate.QueryDeptmentsInHos(true));
            }
            catch (Exception e)
            {
                Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                MessageBox.Show(e.Message);

                return(-1);
            }

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
            return(1);
        }
コード例 #16
0
        /// <summary>
        /// 药理作用名称校验
        ///
        /// //{C8D1015E-41B3-4e90-B624-8B47CF81E665} 校验药理作用名称重复
        /// </summary>
        protected bool VerifyFunctionName()
        {
            if (this.txtName.Tag != null)
            {
                if (this.txtName.Tag.ToString() == this.txtName.Text)           //名称未变
                {
                    return(true);
                }
            }

            if (hsFunctionNameDictionary.Count == 0)
            {
                Neusoft.HISFC.BizProcess.Integrate.Manager drugconstant = new Neusoft.HISFC.BizProcess.Integrate.Manager();

                ArrayList al = drugconstant.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PHYFUNCTION);
                if (al == null)
                {
                    MessageBox.Show("加载药理作用集合发生错误" + drugconstant.Err);
                    return(false);
                }

                foreach (Neusoft.FrameWork.Models.NeuObject info in al)
                {
                    if (hsFunctionNameDictionary.ContainsKey(info.Name) == false)
                    {
                        hsFunctionNameDictionary.Add(info.Name, null);
                    }
                }
            }

            if (this.operKind == "DELETE")          //删除
            {
                if (hsFunctionNameDictionary.ContainsKey(this.txtName.Text) == true)
                {
                    hsFunctionNameDictionary.Remove(this.txtName.Text);
                }
            }
            else
            {
                if (hsFunctionNameDictionary.ContainsKey(this.txtName.Text) == true)
                {
                    DialogResult rs = MessageBox.Show(this.txtName.Text + "  药理作用名称已存在,是否确认添加?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                    if (rs == DialogResult.Yes)
                    {
                        return(true);
                    }
                    else if (rs == DialogResult.No)
                    {
                        return(false);
                    }
                }
                else
                {
                    hsFunctionNameDictionary.Add(this.txtName.Text, null);
                }
            }

            return(true);
        }
コード例 #17
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();
 }
コード例 #18
0
        protected override void OnLoad()
        {
            this.isAcross = true;
            this.isSort   = false;
            base.OnLoad();

            // 部门下拉列表
            System.Collections.ArrayList list_department = new System.Collections.ArrayList();


            this.MainDWLabrary = "Report\\finipb.pbd;Report\\finipb.pbd";
            dwMain.LibraryList = "Report\\finipb.pbd;Report\\finipb.pbd";

            if (deptZone1 == DeptZone.ZY)
            {
                this.ncboDepartment.Items.Add("住院");
                this.mainDWDataObject     = "d_fin_deptfeeincome";
                dwMain.DataWindowObject   = "d_fin_deptfeeincome";
                this.neuComboBox1.Enabled = true;
            }
            else if (deptZone1 == DeptZone.MZ)
            {
                this.ncboDepartment.Items.Add("门诊");
                this.mainDWDataObject     = "d_fin_deptfeeincome2";
                dwMain.DataWindowObject   = "d_fin_deptfeeincome2";
                this.neuComboBox1.Enabled = false;
            }
            else if (deptZone1 == DeptZone.ALL)
            {
                this.ncboDepartment.Items.Add("全院");
                this.ncboDepartment.Items.Add("住院");
                this.ncboDepartment.Items.Add("门诊");
                this.mainDWDataObject     = "d_fin_deptfeeincome3";
                dwMain.DataWindowObject   = "d_fin_deptfeeincome3";
                this.neuComboBox1.Enabled = true;
            }


            // 统计大类下拉列表
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList list_bigtype          = manager.GetConstantList("FEECODESTAT");

            foreach (Neusoft.HISFC.Models.Base.Const con in list_bigtype)
            {
                this.cmbReportType.Items.Add(con);
            }

            this.cmbReportType.alItems.AddRange(list_bigtype);
            this.cmbReportType.SelectedIndex = 0;

            //费用类别下拉列表
            this.neuComboBox1.SelectedIndex = 1;

            //统计方式下拉列表
            this.cmbType.SelectedIndex = 0;

            this.ncboDepartment.SelectedIndex = 0;
        }
コード例 #19
0
        /// <summary>
        /// 增加药品剂型
        /// </summary>
        protected void AddDosage()
        {
            this.AddFirstNode("药品剂型");

            Neusoft.HISFC.BizProcess.Integrate.Manager drugconstant = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDosage = new ArrayList();

            if (this.isShowUsageDosageClass)        //显示用法/剂型大类
            {
                alDosage = drugconstant.GetConstantList("DOSAGECLASS");
            }
            else
            {
                alDosage = drugconstant.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DOSAGEFORM);
            }

            this.AddSecondNode(alDosage, this.Nodes.Count - 1);
        }
コード例 #20
0
        /// <summary>
        /// 通过结算方式找id
        /// </summary>
        /// <param name="payTypeName"></param>
        /// <returns></returns>
        public static string GetPayTypeIdByName(string payTypeName)
        {
            ArrayList al = new ArrayList();

            //{93E6443C-1FB5-45a7-B89D-F21A92200CF6}
            //al = Neusoft.HISFC.Models.Fee.EnumPayTypeService.List();
            al = managerIntegrate.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PAYMODES);
            for (int i = 0; i < al.Count; i++)
            {
                //Neusoft.HISFC.Models.Fee.EnumPayTypeService payType = new Neusoft.HISFC.Models.Fee.EnumPayTypeService();
                //payType = (EnumPayTypeService)al[i];
                if (((Neusoft.FrameWork.Models.NeuObject)al[i]).Name == payTypeName)
                {
                    return(((Neusoft.FrameWork.Models.NeuObject)al[i]).ID);
                }
            }
            return(null);
        }
コード例 #21
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;
            }
        }
コード例 #22
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();
 }
コード例 #23
0
 /// <summary>
 /// 初始化控件
 /// </summary>
 private void InitControl()
 {
     try
     {
         this.cmbZg.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.ZG));
         //出院登记的时间默认为系统时间
         this.dtOutDate.Value = this.dataManager.GetDateTimeFromSysDateTime();
     }
     catch { }
 }
コード例 #24
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitControl()
        {
            #region 添加用法
            Neusoft.HISFC.BizProcess.Integrate.Manager dept = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList al = null;
            if (Neusoft.FrameWork.Management.Connection.Operator != null)  //获得病区
            {
                person = Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee;
            }

            try
            {
                //系统用法
                al = dept.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE);
            }
            catch { return; }
            this.listView1.Columns.Add("系统中的用法", 100, HorizontalAlignment.Center);
            this.listView2.Columns.Add("选择的用法", 100, HorizontalAlignment.Center);
            this.listView1.View = View.Details;
            this.listView2.View = View.Details;
            if (al != null)
            {
                for (int i = 0; i < al.Count; i++)
                {
                    Neusoft.FrameWork.Models.NeuObject o = al[i] as Neusoft.FrameWork.Models.NeuObject;
                    ListViewItem lt = new ListViewItem();
                    lt.Tag        = o;
                    lt.Text       = o.Name;
                    lt.ImageIndex = 0;
                    this.listView1.Items.Add(lt);
                }
            }

            #endregion


            al = manager.QueryTransFusion(person.Nurse.ID);
            if (al == null)
            {
                MessageBox.Show(manager.Err);
                return;
            }
            for (int i = 0; i < al.Count; i++)
            {
                try
                {
                    ListViewItem item = (ListViewItem)this.GetUserFromItem(al[i].ToString()).Clone();
                    this.listView2.Items.Add(item);
                    this.listView1.Items.Remove(GetUserFromItem(al[i].ToString()));
                }
                catch { MessageBox.Show(al[i].ToString() + "没找到!"); }
            }
            alDel = (ArrayList)al.Clone();
        }
コード例 #25
0
        /// <summary>
        /// 联系人关系是否允许修改
        /// </summary>


        #endregion

        /// <summary>
        /// 初始化控件
        /// </summary>
        protected void InitControl()
        {
            try
            {
                this.cmbSex.AddItems(Neusoft.HISFC.Models.Base.SexEnumService.List());
                this.cmbSex.IsListOnly = true;
                this.cmbMarry.AddItems(Neusoft.HISFC.Models.RADT.MaritalStatusEnumService.List());
                this.cmbMarry.IsListOnly = true;
                this.cmbProfession.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PROFESSION));
                this.cmbProfession.IsListOnly = true;
                this.cmbKinAddress.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.AREA));
                this.cmbHomeAddr.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.AREA));
                this.txtWork.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.AREA));

                //合同单位{B71C3094-BDC8-4fe8-A6F1-7CEB2AEC55DD}
                //this.cmbPact.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.PACTUNIT));
                this.cmbPact.AddItems(manager.QueryPactUnitAll());
                this.cmbPact.IsListOnly = true;
            }
            catch { }
        }
コード例 #26
0
        protected override void OnLoad()
        {
            //填充数据 费用类别

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

            //Neusoft.HISFC.BizLogic.Manager.Constant manager = new Neusoft.HISFC.BizLogic.Manager.Constant();
            //ArrayList constantList = manager.GetAllList("FEECODESTAT");

            foreach (Neusoft.HISFC.Models.Base.Const con in constantList)
            {
                cmbReportCode.Items.Add(con);
            }
            //cmbReportCode.AddItems(constantList);
            if (cmbReportCode.Items.Count >= 0)
            {
                cmbReportCode.SelectedIndex = 0;
                reportCode = ((Neusoft.HISFC.Models.Base.Const)cmbReportCode.Items[0]).ID;
                reportName = ((Neusoft.HISFC.Models.Base.Const)cmbReportCode.Items[0]).Name;
            }

            ///查询条件

            comDept.ClearItems();
            if (deptZone1 == DeptZone.ALL_DEPT)
            {
                comDept.Items.Add("按挂号科室查询");
                comDept.Items.Add("按医生所在科室查询");
                comDept.Items.Add("按执行科室查询");
            }
            if (deptZone1 == DeptZone.DOC_DEPT)
            {
                comDept.Items.Add("按医生所在科室查询");
                comDept.Enabled = false;
            }
            if (deptZone1 == DeptZone.EXE_DEPT)
            {
                comDept.Items.Add("按执行科室查询");
                comDept.Enabled = false;
            }
            if (deptZone1 == DeptZone.REG_DEPT)
            {
                comDept.Items.Add("按挂号科室查询");
                comDept.Enabled = false;
            }
            if (comDept.Items.Count >= 0)
            {
                comDept.SelectedIndex = 0;
            }
            base.OnLoad();
        }
コード例 #27
0
 /// <summary>
 /// 初始化控件
 /// </summary>
 private void InitControl()
 {
     try
     {
         this.cmbZg.AddItems(manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.ZG));
         //出院登记的时间默认为系统时间
         this.dtOutDate.Value  = this.inpatient.GetDateTimeFromSysDateTime();
         this.FindForm().Text  = "出院登记";
         this.ActiveControl    = this.txtPatientNo;
         txtPatientNo.myEvent += new Neusoft.HISFC.Components.Common.Controls.myEventDelegate(txtPatientNo_myEvent);
     }
     catch { }
 }
コード例 #28
0
        /// <summary>
        /// 增加第三条件人员类别
        /// </summary>
        protected override void InitComboBox()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager interMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alPact = interMgr.GetConstantList("PACTUNIT");

            Neusoft.HISFC.Models.Base.Const c = new Neusoft.HISFC.Models.Base.Const();
            c.ID      = "ALL";
            c.Name    = "全部";
            c.IsValid = true;
            c.SortID  = 0;
            alPact.Insert(0, c);
            base.cmbDept.AddItems(alPact);
            base.cmbDept.SelectedIndex = 0;
        }
コード例 #29
0
        private int SetSubarea()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager constant = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList alSubarea = constant.GetConstantList("CASE13");

            if (alSubarea.Count == 0 || alSubarea == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取分区失败"));
                return(-1);
            }

            this.cbSubarea.AddItems(alSubarea);
            return(1);
        }
コード例 #30
0
        public void Init()
        {
            System.Collections.ArrayList constantList = manager.GetConstantList("FEECODESTAT");
            this.cmbKind.AddItems(constantList);
            int i = 0;

            foreach (Neusoft.FrameWork.Models.NeuObject obj in cmbKind.alItems)
            {
                if (obj.ID == "ZY01")
                {
                    cmbKind.SelectedIndex = i;
                }
                i++;
            }
        }