Exemplo n.º 1
0
        /// <summary>
        /// 根据药房id获取药房名称
        /// </summary>
        /// <param name="m_strMedStoreid"></param>
        /// <returns></returns>
        public static clsMedStore_VO m_mthGetMedStoreNameByid(string m_strMedStoreid)
        {
            long                       lngRes        = 0;
            clsMedStore_VO             m_objReturnVo = new clsMedStore_VO();
            DataTable                  m_dtMedStore  = new DataTable();
            clsDcl_InStorageMakerOrder objDomain     = new clsDcl_InStorageMakerOrder();

            lngRes = objDomain.m_lngGetMedStoreInfo(out m_dtMedStore);
            if (lngRes > 0 && m_dtMedStore.Rows.Count > 0)
            {
                string    m_strFilter = "medstoreid_chr=" + m_strMedStoreid;
                DataRow[] drArr       = m_dtMedStore.Select(m_strFilter);
                if (drArr != null && drArr.Length == 1)
                {
                    m_objReturnVo.m_strMedStoreID   = m_strMedStoreid;
                    m_objReturnVo.m_strMedStoreName = drArr[0]["medstorename_vchr"].ToString();
                    m_objReturnVo.m_strDeptid       = drArr[0]["deptid_chr"] == DBNull.Value?string.Empty:drArr[0]["deptid_chr"].ToString();
                    m_objReturnVo.m_strDeptName     = drArr[0]["deptname_vchr"] == DBNull.Value ? string.Empty : drArr[0]["deptname_vchr"].ToString();
                    return(m_objReturnVo);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取是否启用审核按钮
        /// </summary>
        /// <returns></returns>
        public static bool m_blnCommitEnabled()
        {
            int p_intCommit = 0;
            clsDcl_InStorageMakerOrder m_objDomain = new clsDcl_InStorageMakerOrder();

            m_objDomain.m_lngGetCommitFlow(out p_intCommit);
            return(p_intCommit == 0);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  获取门诊药房基本信息表
        /// </summary>
        /// <param name="m_dtMedStore"></param>
        /// <returns></returns>
        public static long m_lngGetMedStoreInfo(out DataTable m_dtMedStore)
        {
            long lngRes = 0;
            clsDcl_InStorageMakerOrder objDomain = new clsDcl_InStorageMakerOrder();

            lngRes = objDomain.m_lngGetMedStoreInfo(out m_dtMedStore);
            return(lngRes);
        }