ผลต่างระหว่างรุ่นของ "Common Functions"
ไม่มีความย่อการแก้ไข |
ไม่มีความย่อการแก้ไข |
||
บรรทัดที่ 5: | บรรทัดที่ 5: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 16: | บรรทัดที่ 15: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 26: | บรรทัดที่ 24: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 37: | บรรทัดที่ 34: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 48: | บรรทัดที่ 44: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 59: | บรรทัดที่ 54: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 69: | บรรทัดที่ 63: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 80: | บรรทัดที่ 73: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 89: | บรรทัดที่ 81: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 100: | บรรทัดที่ 91: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 110: | บรรทัดที่ 100: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 121: | บรรทัดที่ 110: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 130: | บรรทัดที่ 118: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 141: | บรรทัดที่ 128: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 150: | บรรทัดที่ 136: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 161: | บรรทัดที่ 146: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 170: | บรรทัดที่ 154: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 181: | บรรทัดที่ 164: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 191: | บรรทัดที่ 173: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 202: | บรรทัดที่ 183: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 211: | บรรทัดที่ 191: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 222: | บรรทัดที่ 201: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 231: | บรรทัดที่ 209: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 242: | บรรทัดที่ 219: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 253: | บรรทัดที่ 229: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 264: | บรรทัดที่ 239: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 274: | บรรทัดที่ 248: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 285: | บรรทัดที่ 258: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 294: | บรรทัดที่ 266: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 305: | บรรทัดที่ 276: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 314: | บรรทัดที่ 284: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 325: | บรรทัดที่ 294: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 337: | บรรทัดที่ 305: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 348: | บรรทัดที่ 315: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 357: | บรรทัดที่ 323: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 368: | บรรทัดที่ 333: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 379: | บรรทัดที่ 343: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 390: | บรรทัดที่ 353: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 400: | บรรทัดที่ 362: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 411: | บรรทัดที่ 372: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 423: | บรรทัดที่ 383: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 434: | บรรทัดที่ 393: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
บรรทัดที่ 444: | บรรทัดที่ 402: | ||
{| style="margin-left:20px;" | {| style="margin-left:20px;" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:120px;" | '''Description''' || | | style="width:120px;" | '''Description''' || XXXXXX | ||
XXXXXX | |||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Parameters''' || | | '''Parameters''' || | ||
บรรทัดที่ 455: | บรรทัดที่ 412: | ||
* '''xxx''' ''(xxx)'': | * '''xxx''' ''(xxx)'': | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| '''Notes''' || | | '''Notes''' || XXXXXX | ||
XXXXXX | |||
|} | |} | ||
{{The Tenko Shrine}} | {{The Tenko Shrine}} |
รุ่นแก้ไขเมื่อ 16:33, 17 กรกฎาคม 2567
Main Functions
grab_id(bookcode, sch_kw, models, isgl=False, datatype="data", month=None, sch_col="docno")
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
grab_whole_doc(bookcode, identifiers, master_model, detail_models, isgl=False,
datatype="data", month=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
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)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
prefetch_all_docs(bookcode, master_spec, detail_specs, isgl=False, datatype="data",
month=None, headid=None, id_col="id", return_instance=False, crossers=[])
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
prep_copy(cp_form, bookcode, head_model, detail_models=[], isgl=False)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
create_doc_copy(cp_form, copy_params, bookcode, orig_doc, head_model, detail_models={},
isgl=False, omit_cols=[])
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
check_modact_stat(modid=None, modcode=None, mode="activate", response="return")
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
process_doc_file(dbtype, tbname, model, at_form, isgl=False, month=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
gen_random_token(length=10, lower=True, upper=True, number=True)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
User Authentication Functions
process_beacon_args(internal_args, request)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
process_doclock(beacon_args, module_name, perm_name, headmodel=None, paired_gl=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
change_datetime(form, reset=False, date_obj=None, time_obj=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
Thread Functions
init_task_db(job_token, overall_load, new_stat="", activity_str="",
suppress_request=True, further_action="")
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
update_task_db(job_token, finished_load=0, overall_load=None,
new_stat=None, activity_str=None, further_action=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
read_task_db(job_token)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
read_resus_import_file(job_token, will_abort=False)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
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)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
gen_qr(num, qr_type="out", info=None)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
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)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
Spreadsheet Export Functions
gen_spreadsheet(specs, round_all=None, col_desc=None, col_size={})
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
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)
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |
doc_mass_delete(dbtype, dbname, models, doc_objs=[], month=None, post_cmd=None,
job_token=None, addi_args=[], docno_to_skip=[])
Description | XXXXXX |
Parameters |
|
Returns |
|
Notes | XXXXXX |