ผลต่างระหว่างรุ่นของ "Common Functions"

จาก คูนิฟ็อกซ์ วิกิ
ไม่มีความย่อการแก้ไข
ไม่มีความย่อการแก้ไข
บรรทัดที่ 1: บรรทัดที่ 1:
grab_id(...)
== Main Functions ==
grab_whole_doc(...)
 
gen_dbcommit_resp(...)
grab_id(bookcode, sch_kw, models, isgl=False, datatype="data", month=None, sch_col="docno")
prefetch_all_docs(...)
 
process_beacon_args(...)
grab_whole_doc(bookcode, identifiers, master_model, detail_models, isgl=False, datatype="data", month=None)
process_doclock(beacon_args, ...)
 
prep_copy(cp_form, ...)
gen_dbcommit_resp(dbtype, tbname, model, form, perm_bit=None, allowed_action=None, suppress_success_msg=False, lock_on_add=True, head_id_col="id", get_dict=None, skip_validation=False, month=None)
create_doc_copy(cp_form, copy_params, ...)
 
change_datetime(form=None, date_obj=new_head.docdate)
prefetch_all_docs(bookcode, master_spec, detail_specs, isgl=False, datatype="data", month=None, headid=None, id_col="id", return_instance=False, crossers=[])
check_modact_stat(...)
 
process_doc_file(at_form, ...)
prep_copy(cp_form, bookcode, head_model, detail_models=[], isgl=False)
doc_mass_delete(job_token=job_token, ...)
 
gen_random_token(10)
create_doc_copy(cp_form, copy_params, bookcode, orig_doc, head_model, detail_models={}, isgl=False, omit_cols=[])
init_task_db(job_token, 1, "request", suppress_request=False)
 
update_task_db(job_token, new_stat="killed", ...)
check_modact_stat(modid=None, modcode=None, mode="activate", response="return")
read_task_db(...)
 
print_in_thread(job_token, doc_objs, pseudo_mapper={...}, ...)
process_doc_file(dbtype, tbname, model, at_form, isgl=False, month=None)
gen_qr(...)
 
replace_printsvg(...)
gen_random_token(length=10, lower=True, upper=True, number=True)
gen_spreadsheet(...)
 
docimport_to_db(imported_file, ..., job_token=job_token)
 
read_resus_import_file(resus_token, will_abort=True)
 
== User Authentication Functions ==
 
process_beacon_args(internal_args, request)
 
process_doclock(beacon_args, module_name, perm_name, headmodel=None, paired_gl=None)
 
change_datetime(form, reset=False, date_obj=None, time_obj=None)
 
 
 
== Thread Functions ==
 
init_task_db(job_token, overall_load, new_stat="", activity_str="", suppress_request=True, further_action="")
 
update_task_db(job_token, finished_load=0, overall_load=None, new_stat=None, activity_str=None, further_action=None)
 
read_task_db(job_token)
 
read_resus_import_file(job_token, will_abort=False)
 
 
 
== Printing Functions ==
 
print_in_thread(job_token, doc_objs, pseudo_mapper, modcode, template_name, svg_name=None, stat_cols=[], skip_company_template=False, make_pdfa3=False)
 
gen_qr(num, qr_type="out", info=None)
 
replace_printsvg(tbfm_mapper, modcode, bookname=None, svg_name=None, suffix=None, job_data=None, clear_printed=True, skip_company_template=False, make_pdfa3=False)
 
 
 
== Spreadsheet Export Functions ==
 
gen_spreadsheet(specs, round_all=None, col_desc=None, col_size={})
 
 
 
== Import & Mass Delete Functions ==
 
docimport_to_db(file_path, dbtype, dbname, models, specs, month=None, verify_cmd=None, post_cmd=None, addi_args=[], autorun_specs=None, job_token=None, custom_datasets=None)
 
doc_mass_delete(dbtype, dbname, models, doc_objs=[], month=None, post_cmd=None, job_token=None, addi_args=[], docno_to_skip=[])

รุ่นแก้ไขเมื่อ 14:04, 17 กรกฎาคม 2567

Main Functions

grab_id(bookcode, sch_kw, models, isgl=False, datatype="data", month=None, sch_col="docno")

grab_whole_doc(bookcode, identifiers, master_model, detail_models, isgl=False, datatype="data", month=None)

gen_dbcommit_resp(dbtype, tbname, model, form, perm_bit=None, allowed_action=None, suppress_success_msg=False, lock_on_add=True, head_id_col="id", get_dict=None, skip_validation=False, month=None)

prefetch_all_docs(bookcode, master_spec, detail_specs, isgl=False, datatype="data", month=None, headid=None, id_col="id", return_instance=False, crossers=[])

prep_copy(cp_form, bookcode, head_model, detail_models=[], isgl=False)

create_doc_copy(cp_form, copy_params, bookcode, orig_doc, head_model, detail_models={}, isgl=False, omit_cols=[])

check_modact_stat(modid=None, modcode=None, mode="activate", response="return")

process_doc_file(dbtype, tbname, model, at_form, isgl=False, month=None)

gen_random_token(length=10, lower=True, upper=True, number=True)


User Authentication Functions

process_beacon_args(internal_args, request)

process_doclock(beacon_args, module_name, perm_name, headmodel=None, paired_gl=None)

change_datetime(form, reset=False, date_obj=None, time_obj=None)


Thread Functions

init_task_db(job_token, overall_load, new_stat="", activity_str="", suppress_request=True, further_action="")

update_task_db(job_token, finished_load=0, overall_load=None, new_stat=None, activity_str=None, further_action=None)

read_task_db(job_token)

read_resus_import_file(job_token, will_abort=False)


Printing Functions

print_in_thread(job_token, doc_objs, pseudo_mapper, modcode, template_name, svg_name=None, stat_cols=[], skip_company_template=False, make_pdfa3=False)

gen_qr(num, qr_type="out", info=None)

replace_printsvg(tbfm_mapper, modcode, bookname=None, svg_name=None, suffix=None, job_data=None, clear_printed=True, skip_company_template=False, make_pdfa3=False)


Spreadsheet Export Functions

gen_spreadsheet(specs, round_all=None, col_desc=None, col_size={})


Import & Mass Delete Functions

docimport_to_db(file_path, dbtype, dbname, models, specs, month=None, verify_cmd=None, post_cmd=None, addi_args=[], autorun_specs=None, job_token=None, custom_datasets=None)

doc_mass_delete(dbtype, dbname, models, doc_objs=[], month=None, post_cmd=None, job_token=None, addi_args=[], docno_to_skip=[])