Exemple #1
0
        public static Patent_Abs To_Patent_Abs(this CompanyPatent p)
        {
            var r = new Patent_Abs();

            r.applicant        = p.Patent_sqr ?? string.Empty;
            r.application_date = p.sq_date.ToString("yyyy-MM-dd");
            r.name             = p.Patent_Name ?? string.Empty;

            r.m_cat = p.Patent_gkh ?? string.Empty;
            r.p_no  = p.Patent_No ?? string.Empty;
            r.p_id  = p.ID;
            return(r);
        }
Exemple #2
0
        public static Patent_Dtl To_Patent_Dtl(this CompanyPatent p)
        {
            var d = new Patent_Dtl();

            d.p_id      = p.ID;
            d.applicant = p.Patent_sqr ?? string.Empty;
            d.m_cat     = p.Patent_gkh ?? string.Empty;
            //d.m_cat = p.Patent_lknflh;
            d.name = p.Patent_Name ?? string.Empty;
            //d.application_date = p.Patent_Day;
            //d.cat_no = p.Patent_flh;
            //d.grant_date = p.Patent_gkr;
            //d.inventer = p.Patent_sjr;
            d.img = ConfigurationManager.AppSettings["patent_domain"] + p.Patent_img;
            //d.detail = p.Patent_zy;
            d.p_no             = p.Patent_No ?? string.Empty;
            d.status           = p.Patent_Status ?? string.Empty;
            d.type             = p.Patent_Type;
            d.application_date = p.patent_date;
            return(d);
        }