Exemplo n.º 1
0
        public string Test()
        {
            RootObject           r1            = new RootObject();
            List <Jz_userImages> listuserimage = new List <Jz_userImages>();

            listuserimage = BLLTable <Jz_userImages> .Select();

            List <Jz_resume>        listresume        = new List <Jz_resume>();
            List <Jz_userEducation> listuserEducation = new List <Jz_userEducation>();
            Jz_resume resume1 = BLLTable <Jz_resume> .GetRowData(1);

            if (!string.IsNullOrEmpty(resume1.Tags))
            {
                Jz_userTagVOs cond1 = new Jz_userTagVOs();
                cond1.In(Jz_userTagVOs.Attribute.UserTagId, resume1.Tags.Trim(','));
                Jz_userTagVOs val1 = new Jz_userTagVOs();
                val1._Name = "";
                List <Jz_userTagVOs> listUserTag = BLLTable <Jz_userTagVOs> .Select(val1, cond1);

                r1.Add(listUserTag, "userTags");
            }
            listuserEducation = BLLTable <Jz_userEducation> .Select(3);

            r1.Add(listuserEducation, "userEducations");
            r1.Add(listuserEducation[0], "userEducation");
            r1.Add(listuserimage, "userImages");
            r1.Add(resume1);
            r1.isDebug  = true;
            r1.isShuati = true;
            string json1 = r1.ToJsonHeadLower();

            return(json1);
        }
Exemplo n.º 2
0
        /// <summary>获得一个实例  </summary>
        public static Jz_resume GetOneInstance()
        {
            Jz_resume value = new Jz_resume();

            return(value);
        }
Exemplo n.º 3
0
        /// <summary></summary>
        public override ITableImplement af_GetOptionValueSchema()
        {
            Jz_resume value = new Jz_resume();


            if (BLLTable.IsExistOptionValue(this.TableName(), "Id"))
            {
                value.id_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "ApplyCount"))
            {
                value.applycount_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "EvaluationStar"))
            {
                value.evaluationstar_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "AuthenticateStatus"))
            {
                value.authenticatestatus_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Mobile"))
            {
                value.mobile_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "HasAuthenticate"))
            {
                value.hasauthenticate_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Sex"))
            {
                value.sex_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Name"))
            {
                value.name_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Email"))
            {
                value.email_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "HeadImg"))
            {
                value.headimg_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Introduction"))
            {
                value.introduction_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "UserFreeTimeMatchIds"))
            {
                value.userfreetimematchids_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "Tags"))
            {
                value.tags_initialized = true;
            }

            if (BLLTable.IsExistOptionValue(this.TableName(), "User_id"))
            {
                value.user_id_initialized = true;
            }

            return(value);
        }