Exemplo n.º 1
0
        public static bool SaveLTDInfoDetailData(Dictionary <Guid, LTD_InfoDetail> ltdInfoDetailList)
        {
            bool ret = false;

            if (ltdInfoDetailList.Count > 0)
            {
                List <LTD_InfoDetail> ltdInfoDetailValueList = new List <LTD_InfoDetail>();
                LTD_InfoDetail[]      ltdInfoDetailArray     = new LTD_InfoDetail[ltdInfoDetailList.Values.Count];
                ltdInfoDetailList.Values.CopyTo(ltdInfoDetailArray, 0);
                ltdInfoDetailValueList.AddRange(ltdInfoDetailArray);
                ret = JsonStore <LTD_InfoDetail> .SaveData(ltdInfoDetailValueList, true);
            }

            return(ret);
        }
Exemplo n.º 2
0
        public static bool SaveLTDSubscriberData(Dictionary <Guid, LTD_Subscriber> ltdSubscriberList)
        {
            bool ret = false;

            if (ltdSubscriberList.Count > 0)
            {
                List <LTD_Subscriber> ltdSubscriberValueList = new List <LTD_Subscriber>();
                LTD_Subscriber[]      ltdSubscriberArray     = new LTD_Subscriber[ltdSubscriberList.Values.Count];
                ltdSubscriberList.Values.CopyTo(ltdSubscriberArray, 0);
                ltdSubscriberValueList.AddRange(ltdSubscriberArray);
                ret = JsonStore <LTD_Subscriber> .SaveData(ltdSubscriberValueList, true);
            }

            return(ret);
        }
Exemplo n.º 3
0
        public static bool SaveCNDDataData(Dictionary <Guid, CND_Data> cndDataList)
        {
            bool ret = false;

            if (cndDataList.Count > 0)
            {
                List <CND_Data> cndDataValueList = new List <CND_Data>();
                CND_Data[]      cndDataArray     = new CND_Data[cndDataList.Values.Count];
                cndDataList.Values.CopyTo(cndDataArray, 0);
                cndDataValueList.AddRange(cndDataArray);
                ret = JsonStore <CND_Data> .SaveData(cndDataValueList, true);
            }

            return(ret);
        }
Exemplo n.º 4
0
        public static bool SaveSYSVersionData(Dictionary <Guid, SYS_Version> sysVersionList)
        {
            bool ret = false;

            if (sysVersionList.Count > 0)
            {
                List <SYS_Version> sysVersionValueList = new List <SYS_Version>();
                SYS_Version[]      sysVersionArray     = new SYS_Version[sysVersionList.Values.Count];
                sysVersionList.Values.CopyTo(sysVersionArray, 0);
                sysVersionValueList.AddRange(sysVersionArray);
                ret = JsonStore <SYS_Version> .SaveData(sysVersionValueList, true);
            }

            return(ret);
        }
Exemplo n.º 5
0
        public static bool SaveCNSDataRefTypeData(Dictionary <Guid, CNS_DataRefType> cnsDataRefTypeList)
        {
            bool ret = false;

            if (cnsDataRefTypeList.Count > 0)
            {
                List <CNS_DataRefType> cnsDataRefTypeValueList = new List <CNS_DataRefType>();
                CNS_DataRefType[]      cnsDataRefTypeArray     = new CNS_DataRefType[cnsDataRefTypeList.Values.Count];
                cnsDataRefTypeList.Values.CopyTo(cnsDataRefTypeArray, 0);
                cnsDataRefTypeValueList.AddRange(cnsDataRefTypeArray);
                ret = JsonStore <CNS_DataRefType> .SaveData(cnsDataRefTypeValueList, true);
            }

            return(ret);
        }