protected void cbSelect_Callback(object source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
    {
        iSabaya.TreeListNode node = iSabaya.TreeListNode.Find(iSabayaContext, int.Parse(e.Parameter));
        SelectedNode = node;
        JsonObjectCollection obj = new JsonObjectCollection();

        obj.Add(new JsonStringValue("NodeId", node.NodeID + ""));
        obj.Add(new JsonStringValue("Desc", node.ToString(iSabayaContext.CurrentLanguage.Code)));
        obj.Add(new JsonStringValue("ParentDesc", node.Parent.ToString(iSabayaContext.CurrentLanguage.Code)));
        obj.Add(new JsonStringValue("ParentId", node.Parent.NodeID.ToString()));
        e.Result = obj.ToString();
    }
Exemple #2
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("Relation ");
            builder.Append(ID);

            if (firstEntity != null)
            {
                builder.Append(": ").Append(firstEntity.ToString());
            }
            else
            {
                builder.Append(": null");
            }

            if (secondEntity != null)
            {
                builder.Append(" - ").Append(secondEntity.ToString());
            }
            else
            {
                builder.Append(" - null");
            }

            if (category != null)
            {
                builder.Append(", category ").Append(category.ToString());
            }

            if (this.EffectivePeriod != null)
            {
                builder.Append(", effective ").Append(this.EffectivePeriod.ToString());
            }

            //builder.Append(", PropertyValue:").Append(PropertyValue.ToLog());

            builder.Append(", recorded ").Append(RecordedDate);
            if (this.Reference != "")
            {
                builder.Append(", reference '").Append(Reference).Append("'");
            }
            if (this.Remark != "")
            {
                builder.Append(", remark '").Append(Remark).Append("'");
            }

            return(builder.ToString());
        }