Ejemplo n.º 1
0
        /// <summary>
        /// 用共用元件類別名稱取得後端作業選項資訊
        /// </summary>
        public OperationOpInfo GetOperationOpInfoByCommonClass(string commonClass)
        {
            OperationOpInfo entity = null;

            using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess())
            {
                entity   = empAuthDao.GetOperationOpInfoByCommonClass(commonClass);
                dbErrMsg = empAuthDao.GetErrMsg();
            }

            return(entity);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 用共用元件類別名稱取得後端作業代碼
        /// </summary>
        public int GetOpIdByCommonClass(string commonClass)
        {
            int opId = 0;

            //用共用元件類別名稱取得後端作業選項資訊
            OperationOpInfo opInfo = null;

            using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess())
            {
                opInfo = empAuthDao.GetOperationOpInfoByCommonClass(commonClass);
                string dbErrMsg = empAuthDao.GetErrMsg();
            }

            if (opInfo != null)
            {
                opId = opInfo.OpId;
            }

            return(opId);
        }