示例#1
0
        /// <summary>
        /// 初始化医嘱批次信息
        /// </summary>
        /// <returns></returns>
        private int InitOrderGroup()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant consManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();

            List <Neusoft.HISFC.Models.Pharmacy.OrderGroup> orderGroupList = consManager.QueryOrderGroup();

            if (orderGroupList == null)
            {
                MessageBox.Show(Language.Msg("获取医嘱批次信息发生错误"));
                return(-1);
            }

            string[] strOrderGroup = new string[orderGroupList.Count + 1];
            strOrderGroup[0] = "全部";
            int i = 1;

            foreach (Neusoft.HISFC.Models.Pharmacy.OrderGroup info in orderGroupList)
            {
                strOrderGroup[i] = info.ID;
                i++;
            }

            this.cmbOrderGroup.Items.AddRange(strOrderGroup);

            string orderGroup = consManager.GetOrderGroup(consManager.GetDateTimeFromSysDateTime());

            if (orderGroup != "")
            {
                this.cmbOrderGroup.Text = orderGroup;
            }

            return(1);
        }
        /// <summary>
        /// 由界面获取药理作用信息   {FF5503FA-0057-413e-BF08-5A8C1DCF7ED8}
        /// </summary>
        /// <returns>成功返回1 失败返回-1</returns>
        protected int GetPhaFunction()
        {
            //如果是当前没有父节点,则为第一级
            if (string.IsNullOrEmpty(this.cmbparent.Text) == false)         //上级节点非空
            {
                functionObject.ParentNode = this.cmbparent.SelectedItem.ID;
            }
            else
            {
                functionObject.ParentNode = "0";
            }

            functionObject.ID        = this.txtCode.Text.Trim();      //药理作用编码
            functionObject.Name      = this.txtName.Text.Trim();      //药理作用名称
            functionObject.WBCode    = this.txtWBCode.Text.Trim();    //五笔码
            functionObject.SpellCode = this.txtSpellCode.Text.Trim(); //拼音码

            functionObject.GradeLevel = this.gridLevel;

            functionObject.Memo          = this.txtMark.Text.Trim();//备注
            functionObject.SortID        = 0;
            functionObject.Oper.ID       = pharmacyConstant.Operator.ID;
            functionObject.Oper.OperTime = pharmacyConstant.GetDateTimeFromSysDateTime();

            //药理作用是否有效
            functionObject.IsValid = this.chkIsValid.Checked;

            return(1);
        }
        /// <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);
        }
示例#4
0
        public int Init()
        {
            this.sysTime = consManager.GetDateTimeFromSysDateTime();

            Neusoft.FrameWork.WinForms.Classes.MarkCellType.DateTimeCellType markDateCellType = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.DateTimeCellType();

            markDateCellType.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.TimeOnly;

            this.neuSpread1_Sheet1.Columns[1].CellType = markDateCellType;
            this.neuSpread1_Sheet1.Columns[2].CellType = markDateCellType;

            return(1);
        }
示例#5
0
 /// <summary>
 /// 根据所赋值的库房编码 设置信息显示
 /// </summary>
 public void SetData()
 {
     Neusoft.HISFC.BizLogic.Pharmacy.Constant   consMgr  = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
     Neusoft.HISFC.Models.Pharmacy.DeptConstant deptCons = consMgr.QueryDeptConstant(this.deptCode);
     if (deptCons == null)
     {
         MessageBox.Show(Language.Msg("获取科室常数发生错误! \n" + consMgr.Err));
         return;
     }
     this.dtpEnd.Value        = consMgr.GetDateTimeFromSysDateTime().Date.AddDays(1).AddSeconds(-1);
     this.dtpBegin.Value      = this.dtpEnd.Value.AddDays(-deptCons.ReferenceDays);
     this.txtMaxDays.Text     = deptCons.StoreMaxDays.ToString();
     this.txtMinDays.Text     = deptCons.StoreMinDays.ToString();
     this.lbIntervalDays.Text = deptCons.ReferenceDays.ToString() + "天";
 }