コード例 #1
0
        public SList getListByIdForExport(string listid)
        {
            SList l = new SList();

            l.Id        = listid;
            l.Namespace = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListNamespace(listid), SynapseHelpers.DataSetSerializerType.Json);
            DataSet dsListManager = SynapseHelpers.GetListManager(listid);

            l.ListManager            = SynapseHelpers.SerializeDataSet(dsListManager, SynapseHelpers.DataSetSerializerType.Json);
            l.ListAttribute          = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListAttribute(listid), SynapseHelpers.DataSetSerializerType.Json);
            l.ListAttributeStyleRule = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListAttributeStyleRule(listid), SynapseHelpers.DataSetSerializerType.Json);
            l.ListBaseviewFilter     = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListBaseviewfilter(listid), SynapseHelpers.DataSetSerializerType.Json);
            l.ListBaseviewParameter  = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListBaseviewParameter(listid), SynapseHelpers.DataSetSerializerType.Json);
            l.ListQuestion           = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListQuestion(listid), SynapseHelpers.DataSetSerializerType.Json);
            l.listQuestionResponse   = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetListQuestionResponse(listid), SynapseHelpers.DataSetSerializerType.Json);

            l.Name = dsListManager.Tables[0].Rows[0]["listname"].ToString();
            string entityid   = dsListManager.Tables[0].Rows[0]["defaultcontext"].ToString();
            string baseviewid = dsListManager.Tables[0].Rows[0]["baseview_id"].ToString();

            l.entity   = getEntityByIdForExport(entityid);
            l.baseview = getBaseViewByIdForExport(baseviewid);
            return(l);
        }