Ejemplo n.º 1
0
        /// <summary>
        /// 更新全院看诊序号
        /// </summary>
        /// <param name="rMgr"></param>
        /// <param name="current"></param>
        /// <param name="seeNo"></param>
        /// <param name="Err"></param>
        /// <returns></returns>
        private int Update(DateTime current, ref int seeNo,
                           ref string Err)
        {
            //更新看诊序号
            //全院是全天大排序,所以午别不生效,默认 1
            if (this.registerManager.UpdateSeeNo("4", current, "ALL", "1") == -1)
            {
                Err = registerManager.Err;
                return(-1);
            }

            //获取全院看诊序号
            if (registerManager.GetSeeNo("4", current, "ALL", "1", ref seeNo) == -1)
            {
                Err = registerManager.Err;
                return(-1);
            }

            return(0);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获得患者看诊序号
 /// </summary>
 /// <param name="Type">Type:1专家序号、2科室序号、4全院序号</param>
 /// <param name="current">看诊日期</param>
 /// <param name="subject">Type=1时,医生代码;Type=2,科室代码;Type=4,ALL</param>
 /// <param name="noonID">午别</param>
 /// <param name="seeNo">当前看诊号</param>
 /// <returns></returns>
 public int GetSeeNo(string Type, DateTime current, string subject, string noonID, ref int seeNo)
 {
     this.SetDB(registerManager);
     return(registerManager.GetSeeNo(Type, current, subject, noonID, ref seeNo));
 }