def AddNewdRec(dbConn, strAppName, strSubTaskName): iRetNewRecID = CSkLBDB_result_app_task_name.GetRecID_By_App_SubTask_Name( dbConn, strAppName, strSubTaskName) if (iRetNewRecID == 0): iRetNewRecID = CSkLBDB_CommFuncShare.ExecInsertRecField2( dbConn, CSkLBDB_result_app_task_name.s_strTableName, "app_name", strAppName, "sub_task_name", strSubTaskName) return iRetNewRecID
def AddNewdRec(dbConn, iBelongAppTaskNameID, strParamID): iRetNewRecID = CSkLBDB_result_param_block.GetRecID_By_AppTaskNameID_ParamID( dbConn, iBelongAppTaskNameID, strParamID) if (iRetNewRecID == 0): iRetNewRecID = CSkLBDB_CommFuncShare.ExecInsertRecField2( dbConn, CSkLBDB_result_param_block.s_strTableName, "belong_app_task_name_id", str(iBelongAppTaskNameID), "param_id", strParamID) return iRetNewRecID
def AddNewdRec(dbConn, strAppName, strSubTaskName): strAppName = CTYLB_MainSys_MiscFunc.SafeGetUnicode(strAppName) strSubTaskName = CTYLB_MainSys_MiscFunc.SafeGetUnicode(strSubTaskName) iRetNewRecID = CSkLBDB_result_app_task_name.GetRecID_By_App_SubTask_Name( dbConn, strAppName, strSubTaskName) if (iRetNewRecID == 0): iRetNewRecID = CSkLBDB_CommFuncShare.ExecInsertRecField2( dbConn, CSkLBDB_result_app_task_name.s_strTableName, "app_name", strAppName, "sub_task_name", strSubTaskName) return iRetNewRecID