由系统自动生成单号(日期+流水),用户新增、修改时不允许编辑单号;
范例(cxmt631):
1)在#单头栏位开启设定#中,即 cxmt631_set_entry(p_cmd)下:
#add-point:Function前置處理 name="set_entry.pre_function" { #end add-point IF p_cmd = "a" THEN CALL cl_set_comp_entry("xmabucdocno",TRUE) #根據azzi850使用者身分開關特定欄位 IF NOT cl_null(g_no_entry) THEN CALL cl_set_comp_entry(g_no_entry,TRUE) END IF #add-point:set_entry段欄位控制 name="set_entry.field_control" } IF p_cmd = "a" THEN CALL cl_set_comp_entry("xmabucdocno",FALSE) #根據azzi850使用者身分開關特定欄位 IF NOT cl_null(g_no_entry) THEN CALL cl_set_comp_entry(g_no_entry,TRUE) END IF #end add-point END IF
a表示新增, CALL cl_set_comp_entry("xmabucdocno",FALSE) 表示设定控件是否可输入;原先是true允许输入,被注释掉改为false;