def AddNewdRec(dbConn,
                   iExecTaskID,
                   ustrReplyContent,
                   ustrReplyParam,
                   ustrWhoExec,
                   execStartTime=None,
                   execFinishTime=None,
                   iExecStatus=0):
        ustrReplyContent = CTYLB_MainSys_MiscFunc.SafeGetUnicode(
            ustrReplyContent)
        ustrReplyParam = CTYLB_MainSys_MiscFunc.SafeGetUnicode(ustrReplyParam)
        ustrWhoExec = CTYLB_MainSys_MiscFunc.SafeGetUnicode(ustrWhoExec)

        iRetNewRecID = CSkLBDB_CommFuncShare.ExecInsertRecField5(
            dbConn, CSkLBDB_ea_brain_exec_result.s_strTableName,
            'exec_task_id', str(iExecTaskID), "reply_content",
            ustrReplyContent, 'reply_param', ustrReplyParam, 'exec_status',
            str(iExecStatus), 'who_exec_name', ustrWhoExec)
        if (iRetNewRecID):
            if (not execStartTime):
                createTime = datetime.now()
            CSkLBDB_CommFuncShare.ExecUpdateRecField_To_DateTime(
                dbConn, CSkLBDB_ea_brain_exec_result.s_strTableName,
                "exec_start_time", execStartTime, "id", str(iRetNewRecID))
        return iRetNewRecID
    def AddNewdRec(dbConn,
                   iBelongEnviruID,
                   ustrChatContent,
                   iContentType,
                   iDirection,
                   createTime=None,
                   execTime=None,
                   iExecStatus=0):
        ustrChatContent = CTYLB_MainSys_MiscFunc.SafeGetUnicode(
            ustrChatContent)

        iRetNewRecID = CSkLBDB_CommFuncShare.ExecInsertRecField5(
            dbConn, CSkLBDB_ea_brain_chatcontent.s_strTableName,
            "chat_content", ustrChatContent, 'belong_envirument_id',
            str(iBelongEnviruID), 'chat_content_type', str(iContentType),
            'chat_direction', str(iDirection), 'exec_status', str(iExecStatus))
        if (iRetNewRecID):
            if (not createTime):
                createTime = datetime.now()
            CSkLBDB_CommFuncShare.ExecUpdateRecField_To_DateTime(
                dbConn, CSkLBDB_ea_brain_chatcontent.s_strTableName,
                "create_time", createTime, "id", str(iRetNewRecID))
        return iRetNewRecID