Beispiel #1
0
        /// <summary>
        /// 获取患者挂号信息

        /// </summary>
        /// <param name="clinicNO">门诊号</param>
        /// <returns>患者挂号信息</returns>
        public Neusoft.HISFC.Models.Registration.Register GetByClinic(string clinicNO)
        {
            this.SetDB(serviceRegister);
            Neusoft.HISFC.Models.Registration.Register objReg = new Neusoft.HISFC.Models.Registration.Register();
            objReg = serviceRegister.GetByClinic(clinicNO);
            if (objReg.ID == null || objReg.ID.Length == 0)
            {
                Neusoft.HISFC.Models.PhysicalExamination.Register examiObj = registerMgr.GetRegisterByClinicNO(clinicNO);
                if (examiObj.ID != "")
                {
                    #region  赋值

                    objReg.ID               = examiObj.ID;
                    objReg.Name             = examiObj.Name;
                    objReg.Sex.ID           = examiObj.Sex.ID;
                    objReg.MaritalStatus.ID = examiObj.MaritalStatus.ID;
                    objReg.Country.ID       = examiObj.Country.ID;
                    objReg.Age              = examiObj.Age;
                    objReg.Birthday         = examiObj.Birthday;
                    #endregion
                }
            }
            return(objReg);
        }
 /// <summary>
 /// 增加或更新某行数据
 /// </summary>
 /// <param name="register"></param>
 /// <returns></returns>
 public int AddOrUpdateRegister(Neusoft.HISFC.Models.PhysicalExamination.Register register)
 {
     this.SetDB(mgrReg);
     return(mgrReg.AddOrUpdateRegister(register));
 }
 /// <summary>
 /// 删除一行数据
 /// </summary>
 /// <param name="register">体检登记实体</param>
 /// <returns></returns>
 protected int DeleteInfo(Neusoft.HISFC.Models.PhysicalExamination.Register register)
 {
     this.SetDB(mgrReg);
     return(mgrReg.DeleteInfo(register));
 }