public void Make_MapCell(int maparea_id, int mapinfo_no)
        {
            string text = Utils.getTableDirMaster(Mst_mapcell2.tableName) + "mst_mapcell/";
            string path = string.Concat(new string[]
            {
                text,
                Mst_mapcell2.tableName,
                "_",
                maparea_id.ToString(),
                mapinfo_no.ToString(),
                ".xml"
            });
            IEnumerable <XElement> enumerable = Utils.Xml_Result_To_Path(path, Mst_mapcell2.tableName, string.Empty);

            if (enumerable == null)
            {
                return;
            }
            this.Mst_mapcell.Clear();
            using (IEnumerator <XElement> enumerator = enumerable.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    XElement     current     = enumerator.get_Current();
                    Mst_mapcell2 mst_mapcell = null;
                    Model_Base.SetMaster <Mst_mapcell2>(out mst_mapcell, current);
                    this.Mst_mapcell.Add(mst_mapcell.No, mst_mapcell);
                }
            }
        }
Ejemplo n.º 2
0
        public void Make_MapCell(int maparea_id, int mapinfo_no)
        {
            string text = Utils.getTableDirMaster(Mst_mapcell2.tableName) + "mst_mapcell/";
            string path = text + Mst_mapcell2.tableName + "_" + maparea_id.ToString() + mapinfo_no.ToString() + ".xml";
            IEnumerable <XElement> enumerable = Utils.Xml_Result_To_Path(path, Mst_mapcell2.tableName, string.Empty);

            if (enumerable != null)
            {
                Mst_mapcell.Clear();
                foreach (XElement item in enumerable)
                {
                    Mst_mapcell2 instance = null;
                    Model_Base.SetMaster(out instance, item);
                    Mst_mapcell.Add(instance.No, instance);
                }
            }
        }