很多时候,根据单据的状态的变化,要控制单据是否只读。
常用的form子程序:
SET_BLOCK_PROPERTY('REQUEST_HEADERS_V',INSERT_ALLOWED,PROPERTY_TRUE);
SET_BLOCK_PROPERTY('REQUEST_HEADERS_V',UPDATE_ALLOWED,PROPERTY_TRUE);SET_BLOCK_PROPERTY('REQUEST_HEADERS_V',DELETE_ALLOWED,PROPERTY_TRUE);SET_BLOCK_PROPERTY('REQUEST_LINES_V',INSERT_ALLOWED,PROPERTY_TRUE);SET_BLOCK_PROPERTY('REQUEST_LINES_V',UPDATE_ALLOWED,PROPERTY_TRUE);SET_BLOCK_PROPERTY('REQUEST_LINES_V',DELETE_ALLOWED,PROPERTY_TRUE);