Exemple #1
0
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "Opened":
                return(Opened);

            case "ProviceId":
                return(ProviceId);

            case "SpellCode":
                return(SpellCode);

            case "TownId":
                return(TownId);

            case "TownName":
                return(TownName);

            case "ClassificationId":
                return(ClassificationId);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #2
0
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "CreateTime":
                return(createtime_initialized);

            case "KemuInfoJson":
                return(kemuinfojson_initialized);

            case "OpenId":
                return(openid_initialized);

            case "UserId":
                return(userid_initialized);

            case "ZsInfoJson":
                return(zsinfojson_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
Exemple #3
0
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                id_initialized = ret;
                return(true);

            case "CreateTime":
                createtime_initialized = ret;
                return(true);

            case "KemuInfoJson":
                kemuinfojson_initialized = ret;
                return(true);

            case "OpenId":
                openid_initialized = ret;
                return(true);

            case "UserId":
                userid_initialized = ret;
                return(true);

            case "ZsInfoJson":
                zsinfojson_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
Exemple #4
0
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "CreateTime":
                return(CreateTime);

            case "KemuInfoJson":
                return(KemuInfoJson);

            case "OpenId":
                return(OpenId);

            case "UserId":
                return(UserId);

            case "ZsInfoJson":
                return(ZsInfoJson);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #5
0
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                this.Id = Convert.ToInt32(AttributeValue);
                return(true);

            case "CreateTime":
                this.CreateTime = Convert.ToDateTime(AttributeValue);
                return(true);

            case "KemuInfoJson":
                this.KemuInfoJson = Convert.ToString(AttributeValue);
                return(true);

            case "OpenId":
                this.OpenId = Convert.ToString(AttributeValue);
                return(true);

            case "UserId":
                this.UserId = Convert.ToString(AttributeValue);
                return(true);

            case "ZsInfoJson":
                this.ZsInfoJson = Convert.ToString(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "Uuid":
                return(Uuid);

            case "CreateTime":
                return(CreateTime);

            case "Name":
                return(Name);

            case "Select":
                return(Select);

            case "UserTagId":
                return(UserTagId);

            case "TagType":
                return(TagType);

            case "User_id":
                return(User_id);

            case "ToUserId":
                return(ToUserId);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #7
0
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "Uuid":
                uuid_initialized = ret;
                return(true);

            case "Title":
                title_initialized = ret;
                return(true);

            case "Context":
                context_initialized = ret;
                return(true);

            case "From_user":
                from_user_initialized = ret;
                return(true);

            case "To_user":
                to_user_initialized = ret;
                return(true);

            case "Type":
                type_initialized = ret;
                return(true);

            case "Type_name":
                type_name_initialized = ret;
                return(true);

            case "Notice_ref_id":
                notice_ref_id_initialized = ret;
                return(true);

            case "Create_time":
                create_time_initialized = ret;
                return(true);

            case "Course_id":
                course_id_initialized = ret;
                return(true);

            case "Status":
                status_initialized = ret;
                return(true);

            case "Is_deal":
                is_deal_initialized = ret;
                return(true);

            case "Modify_time":
                modify_time_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
Exemple #8
0
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "Uuid":
                this.Uuid = StringHelper.GuidParse(AttributeValue);
                return(true);

            case "Title":
                this.Title = Convert.ToString(AttributeValue);
                return(true);

            case "Context":
                this.Context = Convert.ToString(AttributeValue);
                return(true);

            case "From_user":
                this.From_user = Convert.ToString(AttributeValue);
                return(true);

            case "To_user":
                this.To_user = Convert.ToString(AttributeValue);
                return(true);

            case "Type":
                this.Type = Convert.ToString(AttributeValue);
                return(true);

            case "Type_name":
                this.Type_name = Convert.ToString(AttributeValue);
                return(true);

            case "Notice_ref_id":
                this.Notice_ref_id = Convert.ToString(AttributeValue);
                return(true);

            case "Create_time":
                this.Create_time = Convert.ToDateTime(AttributeValue);
                return(true);

            case "Course_id":
                this.Course_id = Convert.ToString(AttributeValue);
                return(true);

            case "Status":
                this.Status = Convert.ToString(AttributeValue);
                return(true);

            case "Is_deal":
                this.Is_deal = Convert.ToString(AttributeValue);
                return(true);

            case "Modify_time":
                this.Modify_time = Convert.ToDateTime(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "Uuid":
                return(uuid_initialized);

            case "CreateTime":
                return(createtime_initialized);

            case "Name":
                return(name_initialized);

            case "Select":
                return(select_initialized);

            case "UserTagId":
                return(usertagid_initialized);

            case "TagType":
                return(tagtype_initialized);

            case "User_id":
                return(user_id_initialized);

            case "ToUserId":
                return(touserid_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
Exemple #10
0
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "CourseId":
                return(courseid_initialized);

            case "Create_time":
                return(create_time_initialized);

            case "Name":
                return(name_initialized);

            case "Price":
                return(price_initialized);

            case "Price2":
                return(price2_initialized);

            case "Type":
                return(type_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
        private void RefreshAttributes()
        {
            cmbAttribute.Items.Clear();
            var entityNode = cmbEntity.SelectedItem is EntityNode ? (EntityNode)cmbEntity.SelectedItem : null;

            if (entityNode == null)
            {
                entityNode = new EntityNode(GetClosestEntityNode(node));
            }
            if (entityNode == null)
            {
                return;
            }
            var entityName = entityNode.EntityName;

            if (form.NeedToLoadEntity(entityName))
            {
                if (!form.working)
                {
                    form.LoadEntityDetails(entityName, RefreshAttributes);
                }
                return;
            }
            var attributes = form.GetDisplayAttributes(entityName);

            foreach (var attribute in attributes)
            {
                AttributeItem.AddAttributeToComboBox(cmbAttribute, attribute, true, FetchXmlBuilder.friendlyNames);
            }
            // RefreshFill now that attributes are loaded
            ControlUtils.FillControl(collec, cmbAttribute);
            ControlUtils.FillControl(collec, cmbValue);
        }
Exemple #12
0
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "Opened":
                return(opened_initialized);

            case "ProviceId":
                return(proviceid_initialized);

            case "SpellCode":
                return(spellcode_initialized);

            case "TownId":
                return(townid_initialized);

            case "TownName":
                return(townname_initialized);

            case "ClassificationId":
                return(classificationid_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
Exemple #13
0
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "CreateTime":
                return(CreateTime);

            case "Date":
                return(Date);

            case "IsPay":
                return(IsPay);

            case "ModifyTime":
                return(ModifyTime);

            case "Teacher_id":
                return(Teacher_id);

            case "Time":
                return(Time);

            case "Uuid":
                return(Uuid);

            default:
                return(base.GetValue(AttributeName));
            }
        }
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "Pname1":
                pname1_initialized = ret;
                return(true);

            case "Pname2":
                pname2_initialized = ret;
                return(true);

            case "Id":
                id_initialized = ret;
                return(true);

            case "Uuid":
                uuid_initialized = ret;
                return(true);

            case "CreateTime":
                createtime_initialized = ret;
                return(true);

            case "ClassificationEnum":
                classificationenum_initialized = ret;
                return(true);

            case "ClassificationId":
                classificationid_initialized = ret;
                return(true);

            case "ClassificationName":
                classificationname_initialized = ret;
                return(true);

            case "PartJobCount":
                partjobcount_initialized = ret;
                return(true);

            case "ParentId":
                parentid_initialized = ret;
                return(true);

            case "ModifyTime":
                modifytime_initialized = ret;
                return(true);

            case "User_id":
                user_id_initialized = ret;
                return(true);

            case "Root":
                root_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
Exemple #15
0
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "CreateTime":
                return(createtime_initialized);

            case "Date":
                return(date_initialized);

            case "IsPay":
                return(ispay_initialized);

            case "ModifyTime":
                return(modifytime_initialized);

            case "Teacher_id":
                return(teacher_id_initialized);

            case "Time":
                return(time_initialized);

            case "Uuid":
                return(uuid_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "Pname1":
                this.Pname1 = Convert.ToString(AttributeValue);
                return(true);

            case "Pname2":
                this.Pname2 = Convert.ToString(AttributeValue);
                return(true);

            case "Id":
                this.Id = Convert.ToInt32(AttributeValue);
                return(true);

            case "Uuid":
                this.Uuid = StringHelper.GuidParse(AttributeValue);
                return(true);

            case "CreateTime":
                this.CreateTime = Convert.ToDateTime(AttributeValue);
                return(true);

            case "ClassificationEnum":
                this.ClassificationEnum = Convert.ToString(AttributeValue);
                return(true);

            case "ClassificationId":
                this.ClassificationId = Convert.ToInt32(AttributeValue);
                return(true);

            case "ClassificationName":
                this.ClassificationName = Convert.ToString(AttributeValue);
                return(true);

            case "PartJobCount":
                this.PartJobCount = Convert.ToInt32(AttributeValue);
                return(true);

            case "ParentId":
                this.ParentId = Convert.ToInt32(AttributeValue);
                return(true);

            case "ModifyTime":
                this.ModifyTime = Convert.ToDateTime(AttributeValue);
                return(true);

            case "User_id":
                this.User_id = StringHelper.GuidParse(AttributeValue);
                return(true);

            case "Root":
                this.Root = Convert.ToInt32(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
Exemple #17
0
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "CourseId":
                return(CourseId);

            case "Create_time":
                return(Create_time);

            case "Name":
                return(Name);

            case "Price":
                return(Price);

            case "Price2":
                return(Price2);

            case "Type":
                return(Type);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #18
0
 private void RefreshAttributes()
 {
     EnableControls(false);
     cmbAttribute.Items.Clear();
     if (records != null)
     {
         var entityName = records.EntityName;
         if (NeedToLoadEntity(entityName))
         {
             if (!working)
             {
                 LoadEntityDetails(entityName, RefreshAttributes);
             }
             return;
         }
         var attributes = GetDisplayAttributes(entityName);
         foreach (var attribute in attributes)
         {
             AttributeItem.AddAttributeToComboBox(cmbAttribute, attribute, true);
         }
         if (entityAttributes.ContainsKey(records.EntityName))
         {
             var attr = entityAttributes[records.EntityName];
             var coll = new Dictionary <string, string>();
             coll.Add("attribute", attr);
             ControlUtils.FillControl(coll, cmbAttribute);
         }
     }
     crmGridView1.ShowFriendlyNames = useFriendlyNames;
     crmGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
     EnableControls(true);
 }
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(id_initialized);

            case "CreateTime":
                return(createtime_initialized);

            case "Items":
                return(items_initialized);

            case "ModifyTime":
                return(modifytime_initialized);

            case "Subject":
                return(subject_initialized);

            case "Uuid":
                return(uuid_initialized);

            case "Xb_product_type_id":
                return(xb_product_type_id_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
Exemple #20
0
        /// <summary>通过属性 获取该字段是否已被初始化</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "RECID":
                return(recid_initialized);

            case "FullName":
                return(fullname_initialized);

            case "DBName":
                return(dbname_initialized);

            case "CreateDate":
                return(createdate_initialized);

            case "ShowOrder":
                return(showorder_initialized);

            case "ConnectStr":
                return(connectstr_initialized);

            default:
                return(base.GetInitialized(AttributeName));
            }
        }
Exemple #21
0
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "Uuid":
                this.Uuid = StringHelper.GuidParse(AttributeValue);
                return(true);

            case "Course_id":
                this.Course_id = Convert.ToString(AttributeValue);
                return(true);

            case "Exam_name":
                this.Exam_name = Convert.ToString(AttributeValue);
                return(true);

            case "Info":
                this.Info = Convert.ToString(AttributeValue);
                return(true);

            case "Category_ids":
                this.Category_ids = Convert.ToString(AttributeValue);
                return(true);

            case "Category_names":
                this.Category_names = Convert.ToString(AttributeValue);
                return(true);

            case "State_time":
                this.State_time = Convert.ToDateTime(AttributeValue);
                return(true);

            case "End_time":
                this.End_time = Convert.ToDateTime(AttributeValue);
                return(true);

            case "Knowledge_id":
                this.Knowledge_id = Convert.ToString(AttributeValue);
                return(true);

            case "Is_answer":
                this.Is_answer = Convert.ToString(AttributeValue);
                return(true);

            case "Is_share":
                this.Is_share = Convert.ToString(AttributeValue);
                return(true);

            case "Video_val":
                this.Video_val = Convert.ToString(AttributeValue);
                return(true);

            case "Teacher":
                this.Teacher = Convert.ToString(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
Exemple #22
0
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "RECID":
                this.RECID = Convert.ToInt32(AttributeValue);
                return(true);

            case "FullName":
                this.FullName = Convert.ToString(AttributeValue);
                return(true);

            case "DBName":
                this.DBName = Convert.ToString(AttributeValue);
                return(true);

            case "CreateDate":
                this.CreateDate = Convert.ToDateTime(AttributeValue);
                return(true);

            case "ShowOrder":
                this.ShowOrder = Convert.ToByte(AttributeValue);
                return(true);

            case "ConnectStr":
                this.ConnectStr = Convert.ToString(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
Exemple #23
0
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "Timestamp":
                timestamp_initialized = ret;
                return(true);

            case "Status":
                status_initialized = ret;
                return(true);

            case "Exception":
                exception_initialized = ret;
                return(true);

            case "Message":
                message_initialized = ret;
                return(true);

            case "Path":
                path_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
Exemple #24
0
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "RECID":
                return(RECID);

            case "FullName":
                return(FullName);

            case "DBName":
                return(DBName);

            case "CreateDate":
                return(CreateDate);

            case "ShowOrder":
                return(ShowOrder);

            case "ConnectStr":
                return(ConnectStr);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #25
0
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "Uuid":
                uuid_initialized = ret;
                return(true);

            case "Course_id":
                course_id_initialized = ret;
                return(true);

            case "Exam_name":
                exam_name_initialized = ret;
                return(true);

            case "Info":
                info_initialized = ret;
                return(true);

            case "Category_ids":
                category_ids_initialized = ret;
                return(true);

            case "Category_names":
                category_names_initialized = ret;
                return(true);

            case "State_time":
                state_time_initialized = ret;
                return(true);

            case "End_time":
                end_time_initialized = ret;
                return(true);

            case "Knowledge_id":
                knowledge_id_initialized = ret;
                return(true);

            case "Is_answer":
                is_answer_initialized = ret;
                return(true);

            case "Is_share":
                is_share_initialized = ret;
                return(true);

            case "Video_val":
                video_val_initialized = ret;
                return(true);

            case "Teacher":
                teacher_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
Exemple #26
0
        /// <summary>通过属性 设置字段值</summary>
        public override bool SetValue(AttributeItem AttributeName, object AttributeValue)
        {
            switch (AttributeName.FieldName)
            {
            case "Timestamp":
                this.Timestamp = Convert.ToString(AttributeValue);
                return(true);

            case "Status":
                this.Status = Convert.ToString(AttributeValue);
                return(true);

            case "Exception":
                this.Exception = Convert.ToString(AttributeValue);
                return(true);

            case "Message":
                this.Message = Convert.ToString(AttributeValue);
                return(true);

            case "Path":
                this.Path = Convert.ToString(AttributeValue);
                return(true);

            default:
                return(base.SetValue(AttributeName, AttributeValue));
            }
        }
        /// <summary>通过属性 获得字段值</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch (AttributeName.FieldName)
            {
            case "Id":
                return(Id);

            case "CreateTime":
                return(CreateTime);

            case "Items":
                return(Items);

            case "ModifyTime":
                return(ModifyTime);

            case "Subject":
                return(Subject);

            case "Uuid":
                return(Uuid);

            case "Xb_product_type_id":
                return(Xb_product_type_id);

            default:
                return(base.GetValue(AttributeName));
            }
        }
Exemple #28
0
    /// <summary>
    /// 获取list页的数据源
    /// 支持主模块的链接
    /// 支持枚举量
    /// 支持时间格式
    /// </summary>
    /// <param name="f1"></param>
    /// <returns></returns>
    public string GetHtmlList(DataBaseField f1, ITableImplement this1)
    {
        if (!f1.Desc.af_Enable)
        {
            return("");                       //是否可用
        }
        if (!f1.Desc.af_Visable)
        {
            return("");                        //是否可见
        }
        string        html      = "";
        string        tableName = f1.TableName;
        AttributeItem attr1     = AttributeItem.Factory(f1);
        object        value1    = (this1.GetValue(attr1));
        DataBaseTable dt1       = f1.DataBaseTable; //DataBaseField f1;

        try
        {
            DataBaseField id1   = dt1.IDField;
            DataBaseField name1 = dt1.NameField;

            if (f1 == dt1.IDField)
            {
                //html = "<a href='index.aspx?id=" + this1.GetValue(dt1.FieldID.FieldName) + "'>" + html + "</a>";
            }
            else if (f1 == dt1.NameField)    // != null && dt1.NameField.FieldName == f1.FieldName)//本模块name详细链接
            {
                string showUrl = "../" + dt1.TableName + "/show.aspx";
                if (!Exist(showUrl))
                {
                    showUrl = "show.aspx";
                }
                html = "<a href='" + showUrl + "?id=" + this1.GetValue(id1) + "&moduleName=" + tableName
                       + "' target='_blank'>" + value1 + "</a>";
            }
            else if (isSelect(f1))    //枚举量
            {
                html = BaseFormHelper.Factory(this1.ConnectKey).GetOptionText(attr1, value1);
            }
            else if (isChaZhao(f1))    //父表
            {
                DataBaseField f2    = f1.DataBaseTable.FatherTable_ChaZhao[0].DataBaseTable.NameField;
                AttributeItem attr2 = AttributeItem.Factory(f2);
                html = Convert.ToString(this1.GetValue(attr2));
            }
            else if (f1.Desc.Switch_CtrlType == BaseCtrlType.FileUpImage)
            {
                html = "<img src ='" + value1 + "' style='height:40px' />";
            }
        }
        catch (Exception ex)
        {
            Cs.Error(ex.ToString());
        }
        if (html == "")
        {
            html = Convert.ToString(value1);
        }
        return(html);
    }
Exemple #29
0
        /// <summary>通过属性 设置属性的初始化布尔值</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch (AttributeName.FieldName)
            {
            case "RECID":
                recid_initialized = ret;
                return(true);

            case "FullName":
                fullname_initialized = ret;
                return(true);

            case "DBName":
                dbname_initialized = ret;
                return(true);

            case "CreateDate":
                createdate_initialized = ret;
                return(true);

            case "ShowOrder":
                showorder_initialized = ret;
                return(true);

            case "ConnectStr":
                connectstr_initialized = ret;
                return(true);

            default:
                return(base.SetInitialized(AttributeName, ret));
            }
        }
        /// <summary>
        /// 获取所有被初始化过的值,获取AttributeItem
        /// 目的为获取 System.Windows.Forms.DataGridViewTextBoxColumn[] 在中间数据层采用了 自定义的 MyDataGridViewTextBoxColumn (空类继承自 DataGridViewTextBoxColumn)
        /// 这里采用了两次遍历的方法,是为了避免拆装过程,使用源代码模式的时候,不会依赖于windows.form.dll。
        /// </summary>
        /// <returns></returns>
        public override AttributeItem[] af_GetAvailableAttributeItem(ref List <object> values)
        {
            List <AttributeItem> parametersList = new List <AttributeItem>();


            if (id_initialized)
            {
                AttributeItem attr = Zy_bookType.Attribute.Id;
                if (!af_IsCondition || !Runtime_PersistenceLayer.IsInTbColumnCannotConditions(attr))
                {
                    parametersList.Add(attr);
                    if (values != null)
                    {
                        values.Add(Id);
                    }
                }
            }

            if (type_name_initialized)
            {
                AttributeItem attr = Zy_bookType.Attribute.Type_name;
                if (!af_IsCondition || !Runtime_PersistenceLayer.IsInTbColumnCannotConditions(attr))
                {
                    parametersList.Add(attr);
                    if (values != null)
                    {
                        values.Add(Type_name);
                    }
                }
            }


            parametersList.AddRange(base.af_GetAvailableAttributeItem(ref values));
            return(parametersList.ToArray());
        }
 /// <summary>
 /// ��ȡlistҳ������Դ  
 /// ֧����ģ�������
 /// ֧��ö����
 /// ֧��ʱ���ʽ
 /// </summary>
 /// <param name="attr"></param>
 /// <returns></returns>
 public string GetHtmlList(AttributeItem attr, WEC_REQUEST this1)
 {
     attr.IsEnable();
     string html = null;
     object value1 = (this1.GetValue(attr));
     DataBaseTable dt1; DataBaseField f1;
     if (AgileFrame.Orm.PersistenceLayer.DAL.Base.RunTime.Factory(this1.ConnectKey).DataBase.TryGetValueAll(attr.TableName, attr.FieldName,
         out dt1, out f1))
     {
         if (dt1.IDField != null && dt1.IDField.FieldName == attr.FieldName)
         {
             //html = "<a href='index.aspx?id=" + this1.GetValue(dt1.FieldID.FieldName) + "'>" + html + "</a>";
         }
         else if (dt1.NameField != null && dt1.NameField.FieldName == attr.FieldName)
         {
             html = "<a href='?id=" + this1.GetValue(dt1.IDField.FieldName) + "'>" + value1 + "</a>";
         }
         else if (f1.Desc.CtrlType == BaseCtrlType.SelectDrop
             || f1.Desc.CtrlType == BaseCtrlType.SelectSingle
             || f1.Desc.CtrlType == BaseCtrlType.SelectMultiple)//ö����
         {
             html = BaseFormHelper.Factory(this1.ConnectKey).GetOptionText(attr, value1);
         }
         else if (f1.Desc.CtrlType == BaseCtrlType.Select_RelationUser
             || f1.Desc.CtrlType == BaseCtrlType.Select_RelationFK)//����
         {
             //f1.(attr, value1);
         }
     }
     if (html == null)
         html = Convert.ToString(value1);
     return html;
 }
Exemple #32
0
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "RECID":
                    this.RECID = Convert.ToInt32(AttributeValue);
                    return true;

                case "FullName":
                    this.FullName = Convert.ToString(AttributeValue);
                    return true;

                case "DBName":
                    this.DBName = Convert.ToString(AttributeValue);
                    return true;

                case "CreateDate":
                    this.CreateDate = Convert.ToDateTime(AttributeValue);
                    return true;

                case "ShowOrder":
                    this.ShowOrder = Convert.ToByte(AttributeValue);
                    return true;

                case "ConnectStr":
                    this.ConnectStr = Convert.ToString(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }
Exemple #33
0
    /// <summary>
    /// ����html
    /// </summary>
    /// <returns></returns>
    protected string getFinder()
    {
        StringBuilder sb = new StringBuilder();
            try
            {
                foreach (DataBaseField f1 in fieldList)
                {
                    f1.Value = null;
                    bool isNull1 = finderObj.IsNotNull();
                    bool isInit1 = false;
                    //���������и�ֵ
                    if (isNull1)
                    {
                        AttributeItem attr1 = new AttributeItem(f1);
                        isInit1 = finderObj.GetInitialized(attr1);
                        if (isInit1)
                            f1.Value = Convert.ToString(finderObj.GetValue(attr1));
                    }

                    string attrHtml = Finder;

                    BuildByTag b1 = new BuildByTag(BuildType.ForHtmlValue);
                    b1.ParseForSwitch��ǩ(ref attrHtml, f1);

                    if (isChaZhao(f1))
                    {
                        attrHtml = attrHtml.Replace("{�ֶ���ʾֵ}", Convert.ToString(finderObj.GetValue(f1.TableName, f1.Desc.FieldCtrlName + "_NAME")));
                    }

                    sb.Append("<dl><dt>").Append(f1.Desc.ZhName).Append("��</dt><!--").Append(f1.FieldName)
                        .Append("--><dd><span>");
                    sb.Append(attrHtml);
                    sb.Append("</span></dd></dl>");
                }
            }
            catch (Exception ex)
            {
                Cs.Error("34" + ex.ToString());
            }
            return sb.ToString();
    }
 /// <summary>
 /// ����html
 /// </summary>
 /// <returns></returns>
 protected string getFinder()
 {
     StringBuilder sb = new StringBuilder();
     try
     {
         foreach (DataBaseField f1 in valObj.af_GetAvailableDataBaseField())
         {
             bool isNull1 = finderObj.IsNotNull();
             bool isInit1 = false;
             //���������и�ֵ
             if (isNull1)
             {
                 AttributeItem attr1 = new AttributeItem(f1);
                 isInit1 = finderObj.GetInitialized(attr1);
                 if (isInit1)
                     f1.Value = Convert.ToString(finderObj.GetValue(attr1));
             }
             string attrHtml = Finder;
             BuildByTag b1 = new BuildByTag(BuildType.ForHtmlValue);
             b1.ParseForSwitch��ǩ(ref attrHtml, f1);
             if (isNull1 && isInit1)
                 f1.Value = "";
             sb.Append("<dl><dt>").Append(f1.Desc.ZhName).Append("��</dt><!--").Append(f1.FieldName)
                 .Append("--><dd><span>");
             sb.Append(attrHtml);
             sb.Append("</span></dd></dl>");
         }
     }
     catch (Exception ex)
     {
         Cs.Error("34" + ex.ToString());
     }
     return sb.ToString();
 }
    protected string findString()
    {
        condObj = new WEC_REQUEST();
        finderObj = new WEC_REQUEST();
        foreach (DataBaseField attr in valObj.af_GetAvailableDataBaseField())
        {
            string fieldValue;
            if (TryGetRequest(attr, out fieldValue))
            {
                AttributeItem attr1 = new AttributeItem(attr);
                condObj.Like(attr1, fieldValue);
                finderObj.SetValue(attr1, fieldValue);
            }
        }

        hidVal.Value = valObj.ToJson(20);
        hidCondition.Value = condObj.ToJson(20);
        hidFind.Value = finderObj.ToJson(20);

        return finderObj.ToJson(20);
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_REQUEST();
        finderObj = new WEC_REQUEST();
        foreach (DataBaseField attr in valObj.af_GetAvailableDataBaseField())
        {
            string fieldValue;
            if (TryGetRequest(attr, out fieldValue))
            {
                AttributeItem attr1 = new AttributeItem(attr);
                condObj.Like(attr1, fieldValue);
                finderObj.SetValue(attr1, fieldValue);
            }
        }

        hidVal.Value = valObj.ToJson(20);
        hidCondition.Value = condObj.ToJson(20);
        hidFind.Value = finderObj.ToJson(20);

        BindList(condObj, 1);
    }
        /// <summary>ͨ������ ��ȡ���ֶ��Ƿ��ѱ���ʼ��</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "ID":
                    return id_initialized;

                case "SourceConnectString":
                    return sourceconnectstring_initialized;

                case "SourceType":
                    return sourcetype_initialized;

                case "SourceName":
                    return sourcename_initialized;

                default:
                    return base.GetInitialized(AttributeName);
            }
        }
        /// <summary>ͨ������ �������Եij�ʼ������ֵ</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch(AttributeName.FieldName)
            {
                case "ID":
                    id_initialized = ret;
                    return true;

                case "SourceConnectString":
                    sourceconnectstring_initialized = ret;
                    return true;

                case "SourceType":
                    sourcetype_initialized = ret;
                    return true;

                case "SourceName":
                    sourcename_initialized = ret;
                    return true;

                default:
                    return base.SetInitialized(AttributeName, ret);
            }
        }
Exemple #39
0
        /// <summary>ͨ������ ����ֶ�ֵ</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "RECID":
                    return RECID;

                case "FullName":
                    return FullName;

                case "DBName":
                    return DBName;

                case "CreateDate":
                    return CreateDate;

                case "ShowOrder":
                    return ShowOrder;

                case "ConnectStr":
                    return ConnectStr;

                default:
                    return base.GetValue(AttributeName);
            }
        }
 protected void ddlSort_SelectedIndexChanged(object sender, EventArgs e)
 {
     string[] sortArr = ddlSort.SelectedValue.Split('|');
     AttributeItem item = new AttributeItem(sortArr[0]);
     if (sortArr[1].ToLower() == "asc")
     {
         condObj.af_PageBy(item, Order.Asc);
     }
     else
     {
         condObj.af_PageBy(item, Order.Desc);
     }
     BindList(condObj, 1);
 }
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "UserSession":
                    this.UserSession = Convert.ToString(AttributeValue);
                    return true;

                case "Constring":
                    this.Constring = Convert.ToString(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }
Exemple #42
0
        /// <summary>ͨ������ �������Եij�ʼ������ֵ</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch(AttributeName.FieldName)
            {
                case "RECID":
                    recid_initialized = ret;
                    return true;

                case "FullName":
                    fullname_initialized = ret;
                    return true;

                case "DBName":
                    dbname_initialized = ret;
                    return true;

                case "CreateDate":
                    createdate_initialized = ret;
                    return true;

                case "ShowOrder":
                    showorder_initialized = ret;
                    return true;

                case "ConnectStr":
                    connectstr_initialized = ret;
                    return true;

                default:
                    return base.SetInitialized(AttributeName, ret);
            }
        }
Exemple #43
0
        /// <summary>ͨ������ �������Եij�ʼ������ֵ</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch(AttributeName.FieldName)
            {
                case "Password":
                    password_initialized = ret;
                    return true;

                case "Version":
                    version_initialized = ret;
                    return true;

                case "LoginMode":
                    loginmode_initialized = ret;
                    return true;

                case "Verification":
                    verification_initialized = ret;
                    return true;

                case "Logoimg":
                    logoimg_initialized = ret;
                    return true;

                case "Logoposition":
                    logoposition_initialized = ret;
                    return true;

                case "Logosize":
                    logosize_initialized = ret;
                    return true;

                case "Logotype":
                    logotype_initialized = ret;
                    return true;

                default:
                    return base.SetInitialized(AttributeName, ret);
            }
        }
Exemple #44
0
        /// <summary>ͨ������ ��ȡ���ֶ��Ƿ��ѱ���ʼ��</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "RECID":
                    return recid_initialized;

                case "FullName":
                    return fullname_initialized;

                case "DBName":
                    return dbname_initialized;

                case "CreateDate":
                    return createdate_initialized;

                case "ShowOrder":
                    return showorder_initialized;

                case "ConnectStr":
                    return connectstr_initialized;

                default:
                    return base.GetInitialized(AttributeName);
            }
        }
        /// <summary>ͨ������ ����ֶ�ֵ</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "UserSession":
                    return UserSession;

                case "Constring":
                    return Constring;

                default:
                    return base.GetValue(AttributeName);
            }
        }
        /// <summary>ͨ������ �������Եij�ʼ������ֵ</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch(AttributeName.FieldName)
            {
                case "UserSession":
                    usersession_initialized = ret;
                    return true;

                case "Constring":
                    constring_initialized = ret;
                    return true;

                default:
                    return base.SetInitialized(AttributeName, ret);
            }
        }
Exemple #47
0
    private void SaveState()
    {
        #region ��ȡ����
            finderObj = new ITableImplement();
            foreach (DataBaseField f1 in valObj.af_GetAvailableDataBaseField())
            {
                string fieldValue = null;
                AttributeItem attr1 = null;
                try
                {
                    if (isChaZhao(f1))
                    {
                        if (TryGetRequest(f1.Desc.FieldCtrlName + "_NAME", out fieldValue))
                        {
                            attr1 = new AttributeItem(f1.TableName, f1.Desc.FieldCtrlName + "_NAME");
                            finderObj.SetValue(attr1, fieldValue);
                        }
                    }
                    if (TryGetRequest(f1, out fieldValue))
                    {
                        attr1 = new AttributeItem(f1);
                        finderObj.SetValue(attr1, fieldValue);
                        if (!string.IsNullOrEmpty(fieldValue))
                            condObj.Like(attr1, fieldValue);
                    }
                }
                catch (Exception ex)
                {
                    Cs.Error(ex.ToString());
                    litWarn.Text = ex.Message + ":" + attr1.LongName + "=" + fieldValue;
                }
            }

            //hidVal.Value = valObj111.ToJson(20);
            //hidCondition.Value = condObj111.ToJson(20);
            hidFind.Value = finderObj.ToJson(20);

            //if (hidCondition.Value != "")
            //{
            //    condObj111 = JsonServiceBase.FromJson<ITableImplement>(hidCondition.Value);
            //}
            #endregion
    }
        /// <summary>ͨ������ ��ȡ���ֶ��Ƿ��ѱ���ʼ��</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "UserSession":
                    return usersession_initialized;

                case "Constring":
                    return constring_initialized;

                default:
                    return base.GetInitialized(AttributeName);
            }
        }
Exemple #49
0
        /// <summary>ͨ������ ��ȡ���ֶ��Ƿ��ѱ���ʼ��</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "Password":
                    return password_initialized;

                case "Version":
                    return version_initialized;

                case "LoginMode":
                    return loginmode_initialized;

                case "Verification":
                    return verification_initialized;

                case "Logoimg":
                    return logoimg_initialized;

                case "Logoposition":
                    return logoposition_initialized;

                case "Logosize":
                    return logosize_initialized;

                case "Logotype":
                    return logotype_initialized;

                default:
                    return base.GetInitialized(AttributeName);
            }
        }
Exemple #50
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.InitModule(ref valObj, ref KeyID, ref fieldList);

            if (!string.IsNullOrEmpty(ModuleName))
            {
                pageAttr1 = AttributeItem.Factory(valObj.DataBaseTable.IDField);
                condObj.af_PageBy(pageAttr1, Order.Desc);

                //condObj111._TableName = valObj111._TableName;

                finderObj._TableName = valObj._TableName;

                DataBaseField[] ds1 = valObj.af_GetAvailableDataBaseField();
                foreach (DataBaseField f1 in ds1)
                {
                    if (!f1.Desc.af_Enable || !f1.Desc.af_Visable)
                        continue;
                    fieldList.Add(f1);
                }
            }

            title = valObj._ZhName + "����";
            Page.Title = title;

            if (!IsPostBack)
            {
                //�����ݿ��ȡ���õ�ȡֵ���������������Ϊ��ͼ��jinsj
                Ec_View cond1 = new Ec_View();
                cond1.ModuleName = valObj._TableName;
                Ec_View v1 = BLLTable<Ec_View>.GetRowData(cond1);
                if (v1 != null && v1.IsNotNull())
                {
                    if (v1.ValueJsonString != "")
                    {
                        valObj = JsonServiceBase.FromJson<ITableImplement>(v1.ValueJsonString);
                    }
                    if (v1.ConditionJsonString != "")
                    {
                        condObj = JsonServiceBase.FromJson<ITableImplement>(v1.ConditionJsonString);
                    }
                    string viewName = v1.ViewName;
                }
                #region//Ĭ�����Գ�ʼ��
                aspPager.CurrentPageIndex = 1;
                txtPageSize.Value = "30";
                aspPager.PageSize = 30;
                #endregion
                #region//���ݳ�ʼ��

                #endregion

                BindList(1);
            }
            if (hidCondition.Value != "")
            {
                //condObj111 = JsonServiceBase.FromJson<ITableImplement>(hidCondition.Value);
            }
            if (hidFind.Value != "")
            {
                finderObj = JsonServiceBase.FromJson<ITableImplement>(hidFind.Value);
            }
            if (hidVal.Value != "")
            {
                //valObj111 = JsonServiceBase.FromJson<ITableImplement>(hidVal.Value);
            }
            if (valObj.IsNull())
            {
                //valObj111.LoadAllAttributes(true);
            }
    }
 //抽象封装
 private string getTree(ITableImplement val, AttributeItem pid, AttributeItem sortAttr, AttributeItem a)
 {
     return "";
 }
Exemple #52
0
        /// <summary>ͨ������ ��ȡ���ֶ��Ƿ��ѱ���ʼ��</summary>
        public override bool GetInitialized(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "Id":
                    return id_initialized;

                case "Type":
                    return type_initialized;

                case "DateTime":
                    return datetime_initialized;

                case "ClientDateTime":
                    return clientdatetime_initialized;

                case "Cpu":
                    return cpu_initialized;

                case "Memory":
                    return memory_initialized;

                case "OtherInfo":
                    return otherinfo_initialized;

                case "Os":
                    return os_initialized;

                case "LoginUserId":
                    return loginuserid_initialized;

                case "ProfileId":
                    return profileid_initialized;

                case "SlVersion":
                    return slversion_initialized;

                default:
                    return base.GetInitialized(AttributeName);
            }
        }
Exemple #53
0
        /// <summary>ͨ������ ����ֶ�ֵ</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "Password":
                    return Password;

                case "Version":
                    return Version;

                case "LoginMode":
                    return LoginMode;

                case "Verification":
                    return Verification;

                case "Logoimg":
                    return Logoimg;

                case "Logoposition":
                    return Logoposition;

                case "Logosize":
                    return Logosize;

                case "Logotype":
                    return Logotype;

                default:
                    return base.GetValue(AttributeName);
            }
        }
Exemple #54
0
        /// <summary>ͨ������ ����ֶ�ֵ</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "Id":
                    return Id;

                case "Type":
                    return Type;

                case "DateTime":
                    return DateTime;

                case "ClientDateTime":
                    return ClientDateTime;

                case "Cpu":
                    return Cpu;

                case "Memory":
                    return Memory;

                case "OtherInfo":
                    return OtherInfo;

                case "Os":
                    return Os;

                case "LoginUserId":
                    return LoginUserId;

                case "ProfileId":
                    return ProfileId;

                case "SlVersion":
                    return SlVersion;

                default:
                    return base.GetValue(AttributeName);
            }
        }
Exemple #55
0
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "Password":
                    this.Password = Convert.ToString(AttributeValue);
                    return true;

                case "Version":
                    this.Version = Convert.ToString(AttributeValue);
                    return true;

                case "LoginMode":
                    this.LoginMode = Convert.ToInt32(AttributeValue);
                    return true;

                case "Verification":
                    this.Verification = Convert.ToInt32(AttributeValue);
                    return true;

                case "Logoimg":
                    this.Logoimg = (byte[])(AttributeValue);
                    return true;

                case "Logoposition":
                    this.Logoposition = Convert.ToString(AttributeValue);
                    return true;

                case "Logosize":
                    this.Logosize = Convert.ToString(AttributeValue);
                    return true;

                case "Logotype":
                    this.Logotype = Convert.ToString(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }
Exemple #56
0
        /// <summary>ͨ������ �������Եij�ʼ������ֵ</summary>
        public override bool SetInitialized(AttributeItem AttributeName, Boolean ret)
        {
            switch(AttributeName.FieldName)
            {
                case "Id":
                    id_initialized = ret;
                    return true;

                case "Type":
                    type_initialized = ret;
                    return true;

                case "DateTime":
                    datetime_initialized = ret;
                    return true;

                case "ClientDateTime":
                    clientdatetime_initialized = ret;
                    return true;

                case "Cpu":
                    cpu_initialized = ret;
                    return true;

                case "Memory":
                    memory_initialized = ret;
                    return true;

                case "OtherInfo":
                    otherinfo_initialized = ret;
                    return true;

                case "Os":
                    os_initialized = ret;
                    return true;

                case "LoginUserId":
                    loginuserid_initialized = ret;
                    return true;

                case "ProfileId":
                    profileid_initialized = ret;
                    return true;

                case "SlVersion":
                    slversion_initialized = ret;
                    return true;

                default:
                    return base.SetInitialized(AttributeName, ret);
            }
        }
        /// <summary>ͨ������ ����ֶ�ֵ</summary>
        public override object GetValue(AttributeItem AttributeName)
        {
            switch(AttributeName.FieldName)
            {
                case "ID":
                    return ID;

                case "SourceConnectString":
                    return SourceConnectString;

                case "SourceType":
                    return SourceType;

                case "SourceName":
                    return SourceName;

                default:
                    return base.GetValue(AttributeName);
            }
        }
Exemple #58
0
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "Id":
                    this.Id = Convert.ToInt32(AttributeValue);
                    return true;

                case "Type":
                    this.Type = Convert.ToByte(AttributeValue);
                    return true;

                case "DateTime":
                    this.DateTime = Convert.ToDateTime(AttributeValue);
                    return true;

                case "ClientDateTime":
                    this.ClientDateTime = Convert.ToDateTime(AttributeValue);
                    return true;

                case "Cpu":
                    this.Cpu = Convert.ToString(AttributeValue);
                    return true;

                case "Memory":
                    this.Memory = Convert.ToDecimal(AttributeValue);
                    return true;

                case "OtherInfo":
                    this.OtherInfo = Convert.ToString(AttributeValue);
                    return true;

                case "Os":
                    this.Os = Convert.ToString(AttributeValue);
                    return true;

                case "LoginUserId":
                    this.LoginUserId = Convert.ToString(AttributeValue);
                    return true;

                case "ProfileId":
                    this.ProfileId = Convert.ToString(AttributeValue);
                    return true;

                case "SlVersion":
                    this.SlVersion = Convert.ToString(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "ID":
                    this.ID = Convert.ToString(AttributeValue);
                    return true;

                case "SourceConnectString":
                    this.SourceConnectString = Convert.ToString(AttributeValue);
                    return true;

                case "SourceType":
                    this.SourceType = Convert.ToString(AttributeValue);
                    return true;

                case "SourceName":
                    this.SourceName = Convert.ToString(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }
        /// <summary>ͨ������ �����ֶ�ֵ</summary>
        public override bool SetValue(AttributeItem AttributeName,object AttributeValue)
        {
            switch(AttributeName.FieldName)
            {
                case "PlanId":
                    this.PlanId = Convert.ToString(AttributeValue);
                    return true;

                case "PlanName":
                    this.PlanName = Convert.ToString(AttributeValue);
                    return true;

                case "DbName":
                    this.DbName = Convert.ToString(AttributeValue);
                    return true;

                case "PathInfo":
                    this.PathInfo = Convert.ToString(AttributeValue);
                    return true;

                case "ID":
                    this.ID = Convert.ToInt32(AttributeValue);
                    return true;

                default:
                    return base.SetValue(AttributeName, AttributeValue);
            }
        }