Пример #1
0
        /// <summary>
        ///     该案件类型是不是实用新型(是返回True,否则返回False)
        ///     Coder:zhangxinyuan(2010-10-16)
        /// </summary>
        /// <returns></returns>
        public string GetModelCaseType()
        {
            CodePTCType codePTCType = GetPTCType("实用新型");

            if (codePTCType != null)
            {
                if (n_PatentTypeID == codePTCType.n_ID)
                {
                    return("true");
                }
            }
            return("false");
        }
Пример #2
0
        /// <summary>
        ///     获取发明案件名称
        ///     Coder:zhangxinyuan(2010-11-16)
        /// </summary>
        /// <returns>案件名称</returns>
        public string GetInvCaseName()
        {
            string      sName       = string.Empty;
            CodePTCType codePTCType = GetPTCType("发明");

            if (codePTCType != null)
            {
                if (n_PatentTypeID == codePTCType.n_ID)
                {
                    sName = s_CaseName;
                }
            }
            return(sName);
        }
Пример #3
0
        /// <summary>
        ///     获取是否为发明专利
        ///     Coder:zhangxinyuan(2010-11-16)
        /// </summary>
        /// <returns></returns>
        public string GetInvCaseType()
        {
            string      sType       = "false";
            CodePTCType codePTCType = GetPTCType("发明");

            if (codePTCType != null)
            {
                if (n_PatentTypeID == codePTCType.n_ID)
                {
                    return("true");
                }
            }
            return(sType);
        }
Пример #4
0
        /// <summary>
        ///     获取案件类型代码实例
        ///     Coder:zhangxinyuan(2010-11-16)
        /// </summary>
        /// <returns>案件类型的对象</returns>
        private CodePTCType GetPTCType(string sName)
        {
            CodePTCType codePTCType = null;

            using (var uow = new UnitOfWork())
            {
                var xpo = new XPCollection(uow, typeof(CodePTCType))
                {
                    Criteria = CriteriaOperator.Parse("s_IPType='P' AND s_Name= ?", sName)
                };
                if (xpo.Count > 0)
                {
                    codePTCType = (CodePTCType)xpo[0];
                }
            }
            return(codePTCType);
        }