Exemplo n.º 1
0
        private void propertyTreeList_AfterFocusNode(object sender, DevExpress.XtraTreeList.NodeEventArgs e)
        {
            if (TreeList_Property.FocusedNode == null)
            {
                return;
            }


            TreeListNode selTreeLNode = TreeList_Property.FocusedNode;

            //TreeListNode selTreeLParNode = propertyTreeList.FocusedNode.ParentNode;
            if (selTreeLNode != null)
            {
                //根据属性获取信息数据
                if (selTreeLNode.GetValue("NodeType").ToString() == "PropertyType")
                {
                    //MessageBox.Show("选择的是属性类型");
                    return;
                }
                else if (selTreeLNode.GetValue("NodeType").ToString() == "PropertyInfo")
                {
                    typeId       = selTreeLNode.GetValue("PROPERTYTYPE_PARENTID").ToString();
                    infoId       = selTreeLNode.GetValue("PROPERTYTYPE_ID").ToString();
                    propertyData = propertyClient.GetPropertyDataCard(objectTypeId, objectId, typeId, infoId);
                    if (propertyData != null)
                    {
                        DBOperType = "U";
                        this.textEdit_Code.EditValue              = propertyData.PROPERTYDATA_CODE;
                        this.textEdit_Name.EditValue              = propertyData.PROPERTYDATA_NAME;
                        this.textEdit_CreateTime.EditValue        = propertyData.PROPERTYDATA_CREATETIME;
                        this.textEdit_LastModifiedTime.EditValue  = propertyData.PROPERTYDATA_LASTMODIFIEDTIME;
                        this.textEdit_ModificationTimes.EditValue = propertyData.PROPERTYDATA_MODIFICATIONTIMES;
                        this.memoEdit_Note.EditValue              = propertyData.PROPERTYDATA_NOTE;
                    }
                    else
                    {
                        DBOperType = "I";
                    }
                }
            }
        }
Exemplo n.º 2
0
        public bool SavePropertyData(MyPropertyData item)
        {
            bool result = true;

            return(result);
        }
Exemplo n.º 3
0
        public bool SavePropertyDataCard(string DBOperType, MyPropertyData propertyData)
        {
            bool result = true;

            return(result);
        }
Exemplo n.º 4
0
        public MyPropertyData GetPropertyDataCard(string objectTypeID, string objectId, string typeId, string infoId)
        {
            MyPropertyData result = new MyPropertyData();

            return(result);
        }