diff --git a/r4_import_plan_excel.py b/r4_import_plan_excel.py index 6fc4c2c..553277d 100644 --- a/r4_import_plan_excel.py +++ b/r4_import_plan_excel.py @@ -9,9 +9,9 @@ from general_functions import * ADD_ITEM_ROUTE = "subject/add" # TITLE = "" - def read_excel_data(file_path ,sheet_name): df = pd.read_excel(file_path , sheet_name=sheet_name) + df.fillna("", inplace=True) data = df.to_dict(orient="records") text_normal = TextNormalizer() @@ -22,20 +22,22 @@ def read_excel_data(file_path ,sheet_name): row["CODE"] = row.get("کد", "") return data -def insert_project(): - # ADD_LIST_QUERY = { - # "title": TITLE, - # "type": 3, - # "item_state": 1, - # "ispublic": 1, - # } +# def insert_project(): - # requests.post(BASE_URL + 'list/' + ADD_LIST_ROUTE, data=ADD_LIST_QUERY, headers=HEADERS) - projectid = 7 # فرض کنید projectid ثابت است - return projectid +# projectid = 7 # فرض کنید projectid ثابت است +# return projectid +def insert_project(sheet_name): + json_file = 'کدهای 50 گانه.json' + with open(json_file, 'r', encoding='utf-8') as f: + data = json.load(f) + for row in data: + if row.get("title") == sheet_name: + base_id = row.get("otherid", 0) + return base_id + 100 # افزایش ۱۰۰ واحدی + print(f"❌ Sheet name '{sheet_name}' not found in JSON data.") + return None - -def insert_real(rows, projectid, IDS_DICT, childs): +def insert_real(rows, projectid, IDS_DICT, childs,otherid): remains = [] for row in rows: @@ -65,6 +67,7 @@ def insert_real(rows, projectid, IDS_DICT, childs): ADD_ITEM_QUERY = { "title": caption, "projectid": projectid, + "otherid": otherid, "meta": row.get("CODE", ""), "childorder": number, "listtype": 0, @@ -93,9 +96,6 @@ def insert_real(rows, projectid, IDS_DICT, childs): return remains - - - def process_excel_data(file_path , sheet_name): data = read_excel_data(file_path , sheet_name) data = sorted(data, key=lambda x: x["ID"]) @@ -103,28 +103,31 @@ def process_excel_data(file_path , sheet_name): IDS_DICT = {} childs = {} - projectid = insert_project() + projectid = insert_project(sheet_name) + otherid = insert_project(sheet_name)-100 if not projectid: return print("🚀 شروع درج داده‌ها") - remains = insert_real(data, projectid, IDS_DICT, childs) + remains = insert_real(data, projectid, IDS_DICT, childs , otherid) count = 1 while remains and count < 3: print(f"\n🔁 تلاش مجدد {count}: باقی‌مانده {len(remains)} آیتم") - remains = insert_real(remains, projectid, IDS_DICT, childs) + remains = insert_real(remains, projectid, IDS_DICT, childs ,otherid) count += 1 - output_file = "real_ids_farhang_honar.json" - with open(output_file, "w", encoding="utf-8") as file: + json_file_path = f'{sheet_name}.json' + with open(json_file_path, "w", encoding="utf-8") as file: json.dump(IDS_DICT, file, ensure_ascii=False, indent=4) - print(f"\n✅ تمام داده‌ها ثبت شدند و در {output_file} ذخیره شدند.") + print(f"\n✅ تمام داده‌ها ثبت شدند و در {sheet_name} ذخیره شدند.") if __name__ == "__main__": - file_path = "H:\\personal\\Plan.xlsx" - sheet_name = 'آموزش و پرورش' - # sheet_name = 'مناطق آزاد' + file_path = "data/Plan.xlsx" + # sheet_name = 'آموزش و پرورش' + sheet_name = 'مناطق آزاد و ویژه اقتصادی' # sheet_name = 'فرهنگ و هنر' process_excel_data(file_path , sheet_name) + + diff --git a/r5_import_codes.py b/r5_import_codes.py index 88365c2..d8d1b53 100644 --- a/r5_import_codes.py +++ b/r5_import_codes.py @@ -1,30 +1,79 @@ -import os -import pandas as pd -from config_base import * -from general_functions import * -from text_normalizer import TextNormalizer import pandas as pd import requests +import json +from text_normalizer import TextNormalizer +from config_base import * +from general_functions import * +ADD_ITEM_ROUTE = "subject/add" +# TITLE = "" -def import_codes_to_list(file_excel, project_id): - - df = pd.read_excel(file_excel, sheet_name=0) - count = 0 - rows_list = df.to_dict(orient='records') - total = len(df[0]) - print('total : ', total) - - column_names = df.columns.tolist() - print(column_names) - try: - for row in rows_list: - pass - - except Exception as e: - print(e) - +def read_excel_data(file_path ): + df = pd.read_excel(file_path ) + df.fillna("", inplace=True) + data = df.to_dict(orient="records") + text_normal = TextNormalizer() + for row in data: + row["CAPTION"] = text_normal.normalize_qanon(row["عنوان"]) + row["ID"] = int(row["ردیف"]) + row["META"] = row.get("توضیحات", "") + return data +def insert_project(): + projectid = 8 # فرض کنید projectid ثابت است + return projectid -import_codes_to_list("./data/کدهای 50 گانه.xlsx", 8) \ No newline at end of file +def process_excel_data(file_path, send_to_server=True): + data = read_excel_data(file_path) + data = sorted(data, key=lambda x: x["ID"]) + projectid = insert_project() + id_counter = 1 # برای fake_id + local_id_map = {} # برای نگه‌داشتن ID ساختگی در حالت تست + output_data = [] # لیستی برای ذخیره خروجی نهایی + for row in data: + caption = row["CAPTION"] + row_id = row["ID"] + meta = row.get("META", "") + + # در حالت تست، parent_id از local map خونده میشه + payload = { + "title": caption, + "projectid": projectid, + "meta": meta, + "otherid": row_id, + "listtype": 0, + + } + + if send_to_server: + try: + response = requests.post( + BASE_URL + 'list/' + ADD_ITEM_ROUTE, data=payload, headers=HEADERS ) + + + + if response.status_code == 200: + res_json = response.json() + new_id = res_json["data"][0]["id"] + print(f"✅ Inserted {caption} => ID: {new_id}") + payload["id"] = new_id + else: + print(f"❌ Error inserting {caption} => Status Code: {response.status_code}") + except Exception as e: + print(f"❌ Failed to insert {caption} (ID={row_id}): {e}") + else: + fake_id = id_counter + local_id_map[row_id] = fake_id + id_counter += 1 + print(f"🧪 TEST MODE: Would insert => {payload} | Fake ID: {fake_id}") + output_data.append(payload) + file_name = "mmm1.json" + with open(file_name, "w", encoding="utf-8") as file: + json.dump(output_data, file, ensure_ascii=False, indent=4) + print(f"\n📁 خروجی در فایل «{file_name}» ذخیره شد.") + +if __name__ == "__main__": + file_path = "data/کدهای 50 گانه.xlsx" + + process_excel_data(file_path ,send_to_server=True ) # False for test \ No newline at end of file diff --git a/آموزش و پرورش.json b/آموزش و پرورش.json new file mode 100644 index 0000000..2007abf --- /dev/null +++ b/آموزش و پرورش.json @@ -0,0 +1,533 @@ +{ + "1": { + "id": 8057, + "title": "بخش اول: تشکیلات، اهداف و وظایف آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 0 + }, + "2": { + "id": 8058, + "title": "فصل اول : تشکیل وزارت آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8057 + }, + "3": { + "id": 8059, + "title": "مبحث اول: اهداف و وظایف وزارت آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8058 + }, + "4": { + "id": 8060, + "title": "مبحث دوم: وظایف آموزش و پرورش در قبال سایر دستگاهها و نهادها", + "projectid": 103, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8058 + }, + "5": { + "id": 8061, + "title": "مبحث سوم: وظایف سایر دستگاهها و نهادها در حوزه آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8058 + }, + "6": { + "id": 8062, + "title": "فصل دوم: شوراها", + "projectid": 103, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8057 + }, + "7": { + "id": 8063, + "title": "مبحث اول: شورای عالی آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8058 + }, + "8": { + "id": 8064, + "title": "مبحث دوم: شوراهای آموزش و پرورش در استانها، شهرستانها و مناطق کشور", + "projectid": 103, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8058 + }, + "9": { + "id": 8065, + "title": "فصل سوم: سازمانهای وابسته", + "projectid": 103, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8057 + }, + "10": { + "id": 8066, + "title": "مبحث اول: سازمان پژوهش و برنامه ریزی آموزشی", + "projectid": 103, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8058 + }, + "11": { + "id": 8067, + "title": "مبحث دوم: سازمان نوسازی و توسعه و تجهیز مدارس کشور", + "projectid": 103, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8058 + }, + "12": { + "id": 8068, + "title": "مبحث سوم: سازمان آموزش و پرورش استثنایی", + "projectid": 103, + "meta": "", + "childorder": 8, + "listtype": 0, + "parent": 8058 + }, + "13": { + "id": 8069, + "title": "مبحث چهارم: سازمان مدارس و مراکز غیر دولتی و توسعه مشارکت های مردمی", + "projectid": 103, + "meta": "", + "childorder": 9, + "listtype": 0, + "parent": 8058 + }, + "14": { + "id": 8070, + "title": "مبحث پنجم: سازمان نهضت سواد آموزی", + "projectid": 103, + "meta": "", + "childorder": 10, + "listtype": 0, + "parent": 8058 + }, + "15": { + "id": 8071, + "title": "مبحث ششم: سازمانهای ایجاد شده به موجب مصوبات شورای عالی انقلاب فرهنگی", + "projectid": 103, + "meta": "", + "childorder": 11, + "listtype": 0, + "parent": 8058 + }, + "16": { + "id": 8072, + "title": "1- سازمان ملی پرورش استعدادهای درخشان (سمپاد)", + "projectid": 103, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8059 + }, + "17": { + "id": 8073, + "title": "2- سازمان ملی تعلیم و تربیت کودک", + "projectid": 103, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8059 + }, + "18": { + "id": 8074, + "title": "3- سازمان دانش آموزی", + "projectid": 103, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8059 + }, + "19": { + "id": 8075, + "title": "4- دانشگاه فرهنگیان", + "projectid": 103, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8059 + }, + "20": { + "id": 8076, + "title": "5- دانشگاه شهید رجایی", + "projectid": 103, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8059 + }, + "21": { + "id": 8077, + "title": "6- کانون پرورش فکری کودکان و نوجوانان", + "projectid": 103, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8059 + }, + "22": { + "id": 8078, + "title": "بخش دوم : امور اداری و استخدامی آموزش و پرورش", + "projectid": 103, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 0 + }, + "23": { + "id": 8079, + "title": "فصل اول: امور اداری", + "projectid": 103, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8057 + }, + "24": { + "id": 8080, + "title": "مبحث اول: امور اداری وزارت", + "projectid": 103, + "meta": "", + "childorder": 12, + "listtype": 0, + "parent": 8058 + }, + "25": { + "id": 8081, + "title": "مبحث دوم: رتبه‌بندی معلمان", + "projectid": 103, + "meta": "", + "childorder": 13, + "listtype": 0, + "parent": 8058 + }, + "26": { + "id": 8082, + "title": "مبحث سوم: خرید خدمات", + "projectid": 103, + "meta": "", + "childorder": 14, + "listtype": 0, + "parent": 8058 + }, + "27": { + "id": 8083, + "title": "فصل دوم: امور استخدامی", + "projectid": 103, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8057 + }, + "28": { + "id": 8084, + "title": "مبحث اول: متعهدین خدمت", + "projectid": 103, + "meta": "", + "childorder": 15, + "listtype": 0, + "parent": 8058 + }, + "29": { + "id": 8085, + "title": "مبحث دوم: حق التدریس", + "projectid": 103, + "meta": "", + "childorder": 16, + "listtype": 0, + "parent": 8058 + }, + "30": { + "id": 8086, + "title": "مبحث سوم: امور رفاهی معلمان", + "projectid": 103, + "meta": "", + "childorder": 17, + "listtype": 0, + "parent": 8058 + }, + "31": { + "id": 8087, + "title": "فصل سوم: عضویت در مجامع و شوراها", + "projectid": 103, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8057 + }, + "32": { + "id": 8088, + "title": "بخش سوم : اموال و امور مالی", + "projectid": 103, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 0 + }, + "33": { + "id": 8089, + "title": "فصل اول: املاک و فضاهای آموزشی و پرورشی", + "projectid": 103, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8057 + }, + "34": { + "id": 8090, + "title": "مبحث اول: تامین فضاهای آموزشی و پرورشی", + "projectid": 103, + "meta": "", + "childorder": 18, + "listtype": 0, + "parent": 8058 + }, + "35": { + "id": 8091, + "title": "مبحث دوم: فروش و واگذاری", + "projectid": 103, + "meta": "", + "childorder": 19, + "listtype": 0, + "parent": 8058 + }, + "36": { + "id": 8092, + "title": "فصل دوم: بودجه و امور مالی", + "projectid": 103, + "meta": "", + "childorder": 8, + "listtype": 0, + "parent": 8057 + }, + "37": { + "id": 8093, + "title": "مبحث اول: بودجه", + "projectid": 103, + "meta": "", + "childorder": 20, + "listtype": 0, + "parent": 8058 + }, + "38": { + "id": 8094, + "title": "مبحث دوم: درآمد و مخارج", + "projectid": 103, + "meta": "", + "childorder": 21, + "listtype": 0, + "parent": 8058 + }, + "39": { + "id": 8095, + "title": "مبحث سوم: معافیت های مالی، مالیاتی و گمرکی", + "projectid": 103, + "meta": "", + "childorder": 22, + "listtype": 0, + "parent": 8058 + }, + "40": { + "id": 8096, + "title": "بخش چهارم: امور دانش آموزان", + "projectid": 103, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 0 + }, + "41": { + "id": 8097, + "title": "فصل اول: ثبت نام و تحصیل", + "projectid": 103, + "meta": "", + "childorder": 9, + "listtype": 0, + "parent": 8057 + }, + "42": { + "id": 8098, + "title": "مبحث اول: ثبت نام", + "projectid": 103, + "meta": "", + "childorder": 23, + "listtype": 0, + "parent": 8058 + }, + "43": { + "id": 8099, + "title": "مبحث دوم: تحصیل", + "projectid": 103, + "meta": "", + "childorder": 24, + "listtype": 0, + "parent": 8058 + }, + "44": { + "id": 8100, + "title": "مبحث سوم: نظام وظیفه", + "projectid": 103, + "meta": "", + "childorder": 25, + "listtype": 0, + "parent": 8058 + }, + "45": { + "id": 8101, + "title": "فصل دوم: تشکل‌های دانش آموزی", + "projectid": 103, + "meta": "", + "childorder": 10, + "listtype": 0, + "parent": 8057 + }, + "46": { + "id": 8102, + "title": "مبحث اول: سازمان بسیج دانش‌آموزی", + "projectid": 103, + "meta": "", + "childorder": 26, + "listtype": 0, + "parent": 8058 + }, + "47": { + "id": 8103, + "title": "مبحث دوم: تعاون آموزشگاهی", + "projectid": 103, + "meta": "", + "childorder": 27, + "listtype": 0, + "parent": 8058 + }, + "48": { + "id": 8104, + "title": "مبحث سوم: اتحادیه انجمن اسلامی دانش آموزان", + "projectid": 103, + "meta": "", + "childorder": 28, + "listtype": 0, + "parent": 8058 + }, + "49": { + "id": 8105, + "title": "بخش پنجم: امور مدارس", + "projectid": 103, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 0 + }, + "50": { + "id": 8106, + "title": "فصل اول: تاسیس و اداره مدارس شبانه روزی و مدارس نمونه دولتی", + "projectid": 103, + "meta": "", + "childorder": 11, + "listtype": 0, + "parent": 8057 + }, + "51": { + "id": 8107, + "title": "مبحث اول: مدارس شبانه روزی", + "projectid": 103, + "meta": "", + "childorder": 29, + "listtype": 0, + "parent": 8058 + }, + "52": { + "id": 8108, + "title": "مبحث دوم: مدارس نمونه دولتی", + "projectid": 103, + "meta": "", + "childorder": 30, + "listtype": 0, + "parent": 8058 + }, + "53": { + "id": 8109, + "title": "فصل دوم: تاسیس و اداره مدارس غیر‌دولتی", + "projectid": 103, + "meta": "", + "childorder": 12, + "listtype": 0, + "parent": 8057 + }, + "54": { + "id": 8110, + "title": "مبحث اول: داخل کشور", + "projectid": 103, + "meta": "", + "childorder": 31, + "listtype": 0, + "parent": 8058 + }, + "55": { + "id": 8111, + "title": "مبحث دوم: خارج کشور", + "projectid": 103, + "meta": "", + "childorder": 32, + "listtype": 0, + "parent": 8058 + }, + "56": { + "id": 8112, + "title": "فصل سوم: تاسیس و اداره مدارس اقلیت های دینی", + "projectid": 103, + "meta": "", + "childorder": 13, + "listtype": 0, + "parent": 8057 + }, + "57": { + "id": 8113, + "title": "بخش ششم: جرایم و تخلفات", + "projectid": 103, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 0 + }, + "58": { + "id": 8114, + "title": "فصل اول: جرایم", + "projectid": 103, + "meta": "", + "childorder": 14, + "listtype": 0, + "parent": 8057 + }, + "59": { + "id": 8115, + "title": "فصل دوم: تخلفات", + "projectid": 103, + "meta": "", + "childorder": 15, + "listtype": 0, + "parent": 8057 + } +} \ No newline at end of file diff --git a/فرهنگ و هنر.json b/فرهنگ و هنر.json new file mode 100644 index 0000000..8b9df5e --- /dev/null +++ b/فرهنگ و هنر.json @@ -0,0 +1,371 @@ +{ + "1": { + "id": 8116, + "title": "فصل اول - ساختار و تشکیلات", + "projectid": 133, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 0 + }, + "2": { + "id": 8117, + "title": "مبحث اول- وزارت فرهنگ و ارشاد اسلامی", + "projectid": 133, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8116 + }, + "3": { + "id": 8118, + "title": "گفتار یک - اهداف", + "projectid": 133, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8117 + }, + "4": { + "id": 8119, + "title": "کفتار دو - وظایف", + "projectid": 133, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8117 + }, + "5": { + "id": 8120, + "title": "گفتار سه- ساختار اداری", + "projectid": 133, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8117 + }, + "6": { + "id": 8121, + "title": "مبحث دوم - شورای عالی انقلاب فرهنگی", + "projectid": 133, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8116 + }, + "7": { + "id": 8122, + "title": "مبحث سوم - سازمان های وابسته به وزارت فرهنگ و ارشاد اسلامی", + "projectid": 133, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8116 + }, + "8": { + "id": 8123, + "title": "گفتار یک - مرکز مدارک فرهنگی انقلاب اسلامی", + "projectid": 133, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8117 + }, + "9": { + "id": 8124, + "title": "فصل دوم- کتابخانه ها", + "projectid": 133, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 0 + }, + "10": { + "id": 8125, + "title": "مبحث اول- کتابخانه های عمومی", + "projectid": 133, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8116 + }, + "11": { + "id": 8126, + "title": "گفتار یک- هیئت امناء", + "projectid": 133, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8117 + }, + "12": { + "id": 8127, + "title": "گفتار دو- انجمن کتابخانه ها", + "projectid": 133, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8117 + }, + "13": { + "id": 8128, + "title": "گفتار سه- منابع مالی و اموال", + "projectid": 133, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8117 + }, + "14": { + "id": 8129, + "title": "گفتار چهار - وظایف دستگاه ها و سازوکار اجرایی", + "projectid": 133, + "meta": "", + "childorder": 8, + "listtype": 0, + "parent": 8117 + }, + "15": { + "id": 8130, + "title": "مبحث دوم - کتابخانه ملی", + "projectid": 133, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8116 + }, + "16": { + "id": 8131, + "title": "گفتار یک- اهداف", + "projectid": 133, + "meta": "", + "childorder": 9, + "listtype": 0, + "parent": 8117 + }, + "17": { + "id": 8132, + "title": "گفتار دو - هیئت امناء", + "projectid": 133, + "meta": "", + "childorder": 10, + "listtype": 0, + "parent": 8117 + }, + "18": { + "id": 8133, + "title": "گفتار سه - رئیس", + "projectid": 133, + "meta": "", + "childorder": 11, + "listtype": 0, + "parent": 8117 + }, + "19": { + "id": 8134, + "title": "گفتار چهار - منابع مالی و اموال", + "projectid": 133, + "meta": "", + "childorder": 12, + "listtype": 0, + "parent": 8117 + }, + "20": { + "id": 8135, + "title": "مبحث سوم- کتابخانه مجلس شورای اسلامی", + "projectid": 133, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8116 + }, + "21": { + "id": 8136, + "title": "گفتار یک- اهداف", + "projectid": 133, + "meta": "", + "childorder": 13, + "listtype": 0, + "parent": 8117 + }, + "22": { + "id": 8137, + "title": "گفتار دو - هیئت امناء", + "projectid": 133, + "meta": "", + "childorder": 14, + "listtype": 0, + "parent": 8117 + }, + "23": { + "id": 8138, + "title": "گفتار سه - رئیس", + "projectid": 133, + "meta": "", + "childorder": 15, + "listtype": 0, + "parent": 8117 + }, + "24": { + "id": 8139, + "title": "گفتار چهار - منابع مالی و اموال", + "projectid": 133, + "meta": "", + "childorder": 16, + "listtype": 0, + "parent": 8117 + }, + "25": { + "id": 8140, + "title": "فصل سوم - زبان و ادب فارسی", + "projectid": 133, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 0 + }, + "26": { + "id": 8141, + "title": "مبحث اول- وظایف سازمان ها", + "projectid": 133, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8116 + }, + "27": { + "id": 8142, + "title": "گفتار یک- فرهنگستان ها", + "projectid": 133, + "meta": "", + "childorder": 17, + "listtype": 0, + "parent": 8117 + }, + "28": { + "id": 8143, + "title": "گفتار دو - صداوسیما", + "projectid": 133, + "meta": "", + "childorder": 18, + "listtype": 0, + "parent": 8117 + }, + "29": { + "id": 8144, + "title": "گفتار سه - سایر دستگاه ها", + "projectid": 133, + "meta": "", + "childorder": 19, + "listtype": 0, + "parent": 8117 + }, + "30": { + "id": 8145, + "title": "مبحث دوم- سازوکار اجرایی پاسداری از زبان", + "projectid": 133, + "meta": "", + "childorder": 8, + "listtype": 0, + "parent": 8116 + }, + "31": { + "id": 8146, + "title": "مبحث سوم - تخلفات", + "projectid": 133, + "meta": "", + "childorder": 9, + "listtype": 0, + "parent": 8116 + }, + "32": { + "id": 8147, + "title": "فصل چهارم- لباس و حجاب", + "projectid": 133, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 0 + }, + "33": { + "id": 8148, + "title": "مبحث اول- وظایف دستگاه های اجرایی", + "projectid": 133, + "meta": "", + "childorder": 10, + "listtype": 0, + "parent": 8116 + }, + "34": { + "id": 8149, + "title": "گفتار یک - کمیته ی ویژه", + "projectid": 133, + "meta": "", + "childorder": 20, + "listtype": 0, + "parent": 8117 + }, + "35": { + "id": 8150, + "title": "گفتار دو - سایر دستگاه ها", + "projectid": 133, + "meta": "", + "childorder": 21, + "listtype": 0, + "parent": 8117 + }, + "36": { + "id": 8151, + "title": "مبحث دوم- سازوکار اجرایی حمایتی", + "projectid": 133, + "meta": "", + "childorder": 11, + "listtype": 0, + "parent": 8116 + }, + "37": { + "id": 8152, + "title": "فصل ینجم - فرهنگ دینی", + "projectid": 133, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 0 + }, + "38": { + "id": 8153, + "title": "مبحث اول- حمایت از فرهنگ اسلامی", + "projectid": 133, + "meta": "", + "childorder": 12, + "listtype": 0, + "parent": 8116 + }, + "39": { + "id": 8154, + "title": "مبحث دوم- ترویج کتابت قرآن", + "projectid": 133, + "meta": "", + "childorder": 13, + "listtype": 0, + "parent": 8116 + }, + "40": { + "id": 8155, + "title": "مبحث سوم - فرهنگ انقلاب و شهادت", + "projectid": 133, + "meta": "", + "childorder": 14, + "listtype": 0, + "parent": 8116 + }, + "41": { + "id": 8156, + "title": "مبحث چهارم - حمایت از مردم فلسطین", + "projectid": 133, + "meta": "", + "childorder": 15, + "listtype": 0, + "parent": 8116 + } +} \ No newline at end of file diff --git a/مناطق آزاد و ویژه اقتصادی.json b/مناطق آزاد و ویژه اقتصادی.json new file mode 100644 index 0000000..a6c8d65 --- /dev/null +++ b/مناطق آزاد و ویژه اقتصادی.json @@ -0,0 +1,227 @@ +{ + "1": { + "id": 8157, + "title": "فصل اول: مقررات عمومی", + "projectid": 145, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 0 + }, + "2": { + "id": 8158, + "title": "مبحث اول: مفاهیم و اصطلاحات", + "projectid": 145, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8157 + }, + "3": { + "id": 8159, + "title": "مبحث دوم: اهداف", + "projectid": 145, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8157 + }, + "4": { + "id": 8160, + "title": "گفتار اول: اهداف ناظر بر مناطق آزاد تجاری ـ صنعتی", + "projectid": 145, + "meta": "", + "childorder": 1, + "listtype": 0, + "parent": 8158 + }, + "5": { + "id": 8161, + "title": "گفتار دوم: اهداف ناظر بر مناطق ویژه اقتصادی", + "projectid": 145, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 8158 + }, + "6": { + "id": 8162, + "title": "مبحث سوم: قلمروی مناطق آزاد و ویژه", + "projectid": 145, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8157 + }, + "7": { + "id": 8163, + "title": "گفتار اول: قلمرو مناطق آزاد تجاری صنعتی", + "projectid": 145, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 8158 + }, + "8": { + "id": 8164, + "title": "گفتار دوم: قلمرو مناطق ویژه اقتصادی", + "projectid": 145, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8158 + }, + "9": { + "id": 8165, + "title": "مبحث چهارم: وظایف و اختیارات افراد نهادهای مختلف در مناطق آزاد و ویژه", + "projectid": 145, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 8157 + }, + "10": { + "id": 8166, + "title": "گفتار اول: وظایف افراد و نهادهای مختلف", + "projectid": 145, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8158 + }, + "11": { + "id": 8167, + "title": "گفتار دوم: اختیارات افراد و نهادهای مختلف", + "projectid": 145, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8158 + }, + "12": { + "id": 8168, + "title": "فصل دوم: نحوه اداره مناطق آزاد و ویژه", + "projectid": 145, + "meta": "", + "childorder": 2, + "listtype": 0, + "parent": 0 + }, + "13": { + "id": 8169, + "title": "مبحث اول: نحوه اداره مناطق آزاد تجاری - صنعتی", + "projectid": 145, + "meta": "", + "childorder": 5, + "listtype": 0, + "parent": 8157 + }, + "14": { + "id": 8170, + "title": "مبحث دوم: نحوه اداره مناطق ویژه اقتصادی", + "projectid": 145, + "meta": "", + "childorder": 6, + "listtype": 0, + "parent": 8157 + }, + "15": { + "id": 8171, + "title": "مقررات ورود و صدور کالا در مناطق ویژه", + "projectid": 145, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8158 + }, + "16": { + "id": 8172, + "title": "مبحث سوم: مدیریت منابع انسانی", + "projectid": 145, + "meta": "", + "childorder": 7, + "listtype": 0, + "parent": 8157 + }, + "17": { + "id": 8173, + "title": "مبحث چهارم: مدیریت درآمدها و هزینه‌ها", + "projectid": 145, + "meta": "", + "childorder": 8, + "listtype": 0, + "parent": 8157 + }, + "18": { + "id": 8174, + "title": "فصل سوم: مشوّق‌ها و معافیت‌های قانونی مناطق", + "projectid": 145, + "meta": "", + "childorder": 3, + "listtype": 0, + "parent": 0 + }, + "19": { + "id": 8175, + "title": "مبحث اول: معافیت‌های مالیاتی", + "projectid": 145, + "meta": "", + "childorder": 9, + "listtype": 0, + "parent": 8157 + }, + "20": { + "id": 8176, + "title": "مبحث دوم: معافیت‌های گمرکی", + "projectid": 145, + "meta": "", + "childorder": 10, + "listtype": 0, + "parent": 8157 + }, + "21": { + "id": 8177, + "title": "مبحث سوم: سایر مشوق‌ها", + "projectid": 145, + "meta": "", + "childorder": 11, + "listtype": 0, + "parent": 8157 + }, + "22": { + "id": 8178, + "title": "فصل چهارم: مقررات تکمیلی", + "projectid": 145, + "meta": "", + "childorder": 4, + "listtype": 0, + "parent": 0 + }, + "23": { + "id": 8179, + "title": "مبحث اول: تأسیس بانک‌ها، شرکت‌ها، موسسات اعتباری، موسسات بیمه، بورس‌ها، موسسات دانش‌بنیان و مراکز علمی", + "projectid": 145, + "meta": "", + "childorder": 12, + "listtype": 0, + "parent": 8157 + }, + "24": { + "id": 8180, + "title": "مبحث دوم: وضعیت حقوقی اراضی و نحوه انتقال زمین در مناطق آزاد و ویژه", + "projectid": 145, + "meta": "", + "childorder": 13, + "listtype": 0, + "parent": 8157 + }, + "25": { + "id": 8181, + "title": "مبحث سوم: احکام قانونی مرتبط با آیین‌نامه‌های اجرایی این قانون", + "projectid": 145, + "meta": "", + "childorder": 14, + "listtype": 0, + "parent": 8157 + } +} \ No newline at end of file diff --git a/کدهای 50 گانه.json b/کدهای 50 گانه.json new file mode 100644 index 0000000..11adecf --- /dev/null +++ b/کدهای 50 گانه.json @@ -0,0 +1,402 @@ +[ + { + "title": "آب", + "projectid": 8, + "meta": "", + "otherid": 1, + "listtype": 0, + "id": 8007 + }, + { + "title": "آمار، برنامه و بودجه", + "projectid": 8, + "meta": "", + "otherid": 2, + "listtype": 0, + "id": 8008 + }, + { + "title": "آموزش و پرورش", + "projectid": 8, + "meta": "", + "otherid": 3, + "listtype": 0, + "id": 8009 + }, + { + "title": "آموزش عالی، پژوهش و فناوری", + "projectid": 8, + "meta": "", + "otherid": 4, + "listtype": 0, + "id": 8010 + }, + { + "title": "آیین دادرسی مدنی", + "projectid": 8, + "meta": "", + "otherid": 5, + "listtype": 0, + "id": 8011 + }, + { + "title": "آیین دادرسی اداری", + "projectid": 8, + "meta": "", + "otherid": 6, + "listtype": 0, + "id": 8012 + }, + { + "title": "آیین دادرسی کیفری", + "projectid": 8, + "meta": "", + "otherid": 7, + "listtype": 0, + "id": 8013 + }, + { + "title": "اداری و استخدامی", + "projectid": 8, + "meta": "", + "otherid": 8, + "listtype": 0, + "id": 8014 + }, + { + "title": "اموال و معاملات دولتی", + "projectid": 8, + "meta": "(با زیرفصل اجرای سیاستهای کلی اصل44)", + "otherid": 9, + "listtype": 0, + "id": 8015 + }, + { + "title": "اطلاعات، امنیت و نظامی، انتظامی", + "projectid": 8, + "meta": "", + "otherid": 10, + "listtype": 0, + "id": 8016 + }, + { + "title": "امور زیربنایی", + "projectid": 8, + "meta": "", + "otherid": 11, + "listtype": 0, + "id": 8017 + }, + { + "title": "انتخابات", + "projectid": 8, + "meta": "", + "otherid": 12, + "listtype": 0, + "id": 8018 + }, + { + "title": "اوقاف، اماکن دینی و امور مذهبی", + "projectid": 8, + "meta": "", + "otherid": 13, + "listtype": 0, + "id": 8019 + }, + { + "title": "ایثارگران", + "projectid": 8, + "meta": "", + "otherid": 14, + "listtype": 0, + "id": 8020 + }, + { + "title": "بانکداری", + "projectid": 8, + "meta": "", + "otherid": 15, + "listtype": 0, + "id": 8021 + }, + { + "title": "برق و انرژی‌های نوین", + "projectid": 8, + "meta": "", + "otherid": 16, + "listtype": 0, + "id": 8022 + }, + { + "title": "بیمه", + "projectid": 8, + "meta": "", + "otherid": 17, + "listtype": 0, + "id": 8023 + }, + { + "title": "پولی و مالی", + "projectid": 8, + "meta": " (با زیرفصل‌های سرمایه گذاری داخلی وخارجی ـ بازار سرمایه)", + "otherid": 18, + "listtype": 0, + "id": 8024 + }, + { + "title": "تأمین اجتماعی", + "projectid": 8, + "meta": "", + "otherid": 19, + "listtype": 0, + "id": 8025 + }, + { + "title": "تجارت", + "projectid": 8, + "meta": "(اعم از تجارت داخلی و خارجی)", + "otherid": 20, + "listtype": 0, + "id": 8026 + }, + { + "title": "تشکل‌های مدنی و احزاب", + "projectid": 8, + "meta": "", + "otherid": 21, + "listtype": 0, + "id": 8027 + }, + { + "title": "تشکیلات و امور اداری قوه قضائیه", + "projectid": 8, + "meta": "", + "otherid": 22, + "listtype": 0, + "id": 8028 + }, + { + "title": "تعاون", + "projectid": 8, + "meta": "", + "otherid": 23, + "listtype": 0, + "id": 8029 + }, + { + "title": "تعزیرات حکومتی", + "projectid": 8, + "meta": "(مجازات‌های غیرقضایی)", + "otherid": 24, + "listtype": 0, + "id": 8030 + }, + { + "title": "تقسیمات کشوری و مدیریت محلی", + "projectid": 8, + "meta": "", + "otherid": 25, + "listtype": 0, + "id": 8031 + }, + { + "title": "ثبت اسناد و املاک", + "projectid": 8, + "meta": "", + "otherid": 26, + "listtype": 0, + "id": 8032 + }, + { + "title": "حمل و نقل", + "projectid": 8, + "meta": "", + "otherid": 27, + "listtype": 0, + "id": 8033 + }, + { + "title": "خانواده", + "projectid": 8, + "meta": "", + "otherid": 28, + "listtype": 0, + "id": 8034 + }, + { + "title": "رسانه", + "projectid": 8, + "meta": "", + "otherid": 29, + "listtype": 0, + "id": 8035 + }, + { + "title": "سلامت", + "projectid": 8, + "meta": "", + "otherid": 30, + "listtype": 0, + "id": 8036 + }, + { + "title": "صنعت", + "projectid": 8, + "meta": "", + "otherid": 31, + "listtype": 0, + "id": 8037 + }, + { + "title": "ارتباطات و فناوری اطلاعات", + "projectid": 8, + "meta": "", + "otherid": 32, + "listtype": 0, + "id": 8038 + }, + { + "title": "فرهنگ و هنر", + "projectid": 8, + "meta": "", + "otherid": 33, + "listtype": 0, + "id": 8039 + }, + { + "title": "کار", + "projectid": 8, + "meta": "", + "otherid": 34, + "listtype": 0, + "id": 8040 + }, + { + "title": "کشاورزی و دامپروری", + "projectid": 8, + "meta": "(منابع طبیعی)", + "otherid": 35, + "listtype": 0, + "id": 8041 + }, + { + "title": "کیفری", + "projectid": 8, + "meta": "", + "otherid": 36, + "listtype": 0, + "id": 8042 + }, + { + "title": "مالکیت فکری", + "projectid": 8, + "meta": "", + "otherid": 37, + "listtype": 0, + "id": 8043 + }, + { + "title": "مالیات", + "projectid": 8, + "meta": "", + "otherid": 38, + "listtype": 0, + "id": 8044 + }, + { + "title": "محاسبات عمومی", + "projectid": 8, + "meta": "", + "otherid": 39, + "listtype": 0, + "id": 8045 + }, + { + "title": "محیط زیست", + "projectid": 8, + "meta": "(اراضی مربوط به محیط زیست (خاک) زیر این کد قرار میگیرد)", + "otherid": 40, + "listtype": 0, + "id": 8046 + }, + { + "title": "مدنی و امور حسبی", + "projectid": 8, + "meta": " (ثبت احوال،تابعیت واتباع خارجی از سرفصل‌های این کد است)", + "otherid": 41, + "listtype": 0, + "id": 8047 + }, + { + "title": "مسکن و شهرسازی", + "projectid": 8, + "meta": " (اراضی مربوط به مسکن و شهرسازی زیر این کد قرار میگیرد)", + "otherid": 42, + "listtype": 0, + "id": 8048 + }, + { + "title": "مصرف", + "projectid": 8, + "meta": " (با زیرفصل قانون سازمان ملی استاندارد، سایر قوانین و مقررات استاندارد در زیر هر یک از کدهای مربوطه قرار می گیرد)", + "otherid": 43, + "listtype": 0, + "id": 8049 + }, + { + "title": "معدن", + "projectid": 8, + "meta": "", + "otherid": 44, + "listtype": 0, + "id": 8050 + }, + { + "title": "مناطق آزاد و ویژه اقتصادی", + "projectid": 8, + "meta": "", + "otherid": 45, + "listtype": 0, + "id": 8051 + }, + { + "title": "میراث فرهنگی، گردشگری و صنایع دستی", + "projectid": 8, + "meta": "", + "otherid": 46, + "listtype": 0, + "id": 8052 + }, + { + "title": "نظام قانونگذاری", + "projectid": 8, + "meta": " (که شامل سه سرفصل مجلس شورای اسلامی متشکل از (تقنین و نظارت)، شورای نگهبان، مجمع تشخیص مصلحت نظام)", + "otherid": 47, + "listtype": 0, + "id": 8053 + }, + { + "title": "نظامهای صنفی و حرفهای", + "projectid": 8, + "meta": "", + "otherid": 48, + "listtype": 0, + "id": 8054 + }, + { + "title": "نفت و گاز", + "projectid": 8, + "meta": "", + "otherid": 49, + "listtype": 0, + "id": 8055 + }, + { + "title": "ورزش", + "projectid": 8, + "meta": "", + "otherid": 50, + "listtype": 0, + "id": 8056 + } +] \ No newline at end of file